@stoked-cenv/cli
Version:
A well considered cli and Node.js library for helping manage application, infrastructure, and configuration management.
19 lines (18 loc) • 736 B
TypeScript
import { BaseCommandOptions, CommandInfo, Package } from '@stoked-cenv/lib';
import { BaseCommand } from './cli/commands';
export interface ICenvCommand {
config?: CommandInfo;
runCommand(passedParam: string[], options?: BaseCommandOptions, packages?: Package[]): Promise<void>;
}
export declare function cenvSetup(commandName: string, config: CommandInfo, params?: string[], opts?: Record<string, any>): Promise<{
params: string[];
options: Record<string, any>;
packages?: undefined;
args?: undefined;
} | {
params: string[];
options: any;
packages: Package[];
args: any;
}>;
export declare function runCommand(cmd: BaseCommand, params?: string[], options?: Record<string, any>): Promise<void>;