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

18 lines (17 loc) 748 B
import { Command, CLIArgs, Flags } from './command'; export declare class CommandRunner { private command; private args; private flags; constructor(command: Command, args: CLIArgs, flags: Flags); runCommand(): Promise<boolean | void | null>; private shouldRunRender; private runJsonHandler; private runRenderHandler; private runReportHandler; private writeAndExit; private runMigrateIfNeeded; } export declare function handleErrorAndExit(err: Error, commandName: string, shouldSerialize?: boolean): boolean | void; export declare function handleUnhandledRejection(err: Error | null | undefined | {}): boolean | void; export declare function logErrAndExit(err: Error | string, commandName: string): void;