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
31 lines (30 loc) • 890 B
TypeScript
/// <reference types="react" />
import { CommandOptions } from './legacy-command';
export interface Command {
name: string;
alias?: string;
shortDescription?: string;
description?: string;
group?: string;
private?: boolean;
internal?: boolean;
loader?: boolean;
options: CommandOptions;
commands?: Command[];
remoteOp?: boolean;
_packageManagerArgs?: string[];
render?(args: CLIArgs, flags: Flags): Promise<React.ReactElement>;
report?(args: CLIArgs, flags: Flags): Promise<string | Report>;
json?(args: CLIArgs, flags: Flags): Promise<GenericObject>;
}
export declare type Flags = {
[flagName: string]: string | boolean | undefined;
};
export declare type CLIArgs = Array<string[] | string>;
export declare type GenericObject = {
[k: string]: any;
};
export declare type Report = {
data: string;
code: number;
};