UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

17 lines (16 loc) 674 B
import { Command, Interfaces } from "@oclif/core"; import { LogLevel } from "./logs"; export type SafiraFlags<T extends typeof Command> = Interfaces.InferredFlags<typeof BaseCommand["globalFlags"] & T["flags"]>; export declare abstract class BaseCommand<T extends typeof Command> extends Command { static enableJsonFlag: boolean; static globalFlags: { "log-level": Interfaces.OptionFlag<LogLevel>; help: Interfaces.BooleanFlag<void>; }; protected flags: SafiraFlags<T>; init(): Promise<void>; protected catch(err: Error & { exitCode?: number; }): Promise<any>; protected finally(_: Error | undefined): Promise<any>; }