UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

34 lines (33 loc) 1.14 kB
import { Command } from '../../cli/command'; import CommandRegistry from './registry'; import { Reporter } from '../reporter'; export declare class CLIExtension { private registry; private reporter; readonly groups: { [k: string]: string; }; static dependencies: { name: string; dependencies: { name: string; dependencies: never[]; config: {}; provider: typeof import("../logger/logger.provider").provideLogger; }[]; config: {}; provider: typeof import("../reporter/reporter.provider").provideReporter; }[]; static provider([reporter]: [Reporter]): Promise<CLIExtension>; constructor(registry: CommandRegistry, reporter: Reporter); private setDefaults; register(command: Command): void; get commands(): { [commandId: string]: Command; }; run(): Promise<void>; private shouldOutputJson; private throwForNonExistsCommand; registerGroup(name: string, description: string): void; } export declare function CLIProvider([cliExtension]: [CLIExtension]): Promise<CLIExtension>;