1 | /**
|
2 | * @license
|
3 | * Copyright Google Inc. All Rights Reserved.
|
4 | *
|
5 | * Use of this source code is governed by an MIT-style license that can be
|
6 | * found in the LICENSE file at https://angular.io/license
|
7 | */
|
8 | import { analytics, logging } from '@angular-devkit/core';
|
9 | import { CommandWorkspace } from './interface';
|
10 | export interface CommandMapOptions {
|
11 | [key: string]: string;
|
12 | }
|
13 | /**
|
14 | * Run a command.
|
15 | * @param args Raw unparsed arguments.
|
16 | * @param logger The logger to use.
|
17 | * @param workspace Workspace information.
|
18 | * @param commands The map of supported commands.
|
19 | * @param options Additional options.
|
20 | */
|
21 | export declare function runCommand(args: string[], logger: logging.Logger, workspace: CommandWorkspace, commands?: CommandMapOptions, options?: {
|
22 | analytics?: analytics.Analytics;
|
23 | }): Promise<number | void>;
|