UNPKG

819 BTypeScriptView Raw
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 */
8import { analytics, logging } from '@angular-devkit/core';
9import { CommandWorkspace } from './interface';
10export 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 */
21export declare function runCommand(args: string[], logger: logging.Logger, workspace: CommandWorkspace, commands?: CommandMapOptions, options?: {
22 analytics?: analytics.Analytics;
23}): Promise<number | void>;