@unito/integration-cli
Version:
Integration CLI
15 lines (14 loc) • 632 B
TypeScript
import { Command, Interfaces } from '@oclif/core';
export type Flags<T extends typeof Command> = Interfaces.InferredFlags<(typeof BaseCommand)['baseFlags'] & T['flags']>;
export type Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>;
export declare abstract class BaseCommand<T extends typeof Command> extends Command {
static enableJsonFlag: boolean;
protected flags: Flags<T>;
protected args: Args<T>;
init(): Promise<void>;
run(): Promise<void>;
protected catch(err: Error & {
exitCode?: number;
}): Promise<any>;
protected finally(_: Error | undefined): Promise<any>;
}