@enspirit/emb
Version:
A replacement for our Makefile-for-monorepos
17 lines (16 loc) • 724 B
TypeScript
import { Command, Interfaces } from '@oclif/core';
import { BaseCommand } from './BaseCommand.js';
export type Flags<T extends typeof Command> = Interfaces.InferredFlags<(typeof FlavoredCommand)['baseFlags'] & T['flags']>;
export type Args<T extends typeof Command> = Interfaces.InferredArgs<T['args']>;
export declare abstract class FlavoredCommand<T extends typeof Command> extends BaseCommand {
static baseFlags: {
flavor: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
};
static enableJsonFlag: boolean;
protected args: Args<T>;
protected flags: Flags<T>;
protected catch(err: Error & {
exitCode?: number;
}): Promise<void>;
init(): Promise<void>;
}