@geeth.io/command-engine
Version:
A minimal, class-based CLI command engine with support for nested commands, options, and attributes.
11 lines (10 loc) • 342 B
TypeScript
import { CommandBuilder } from "./types";
export declare class CommandEngine {
private commands;
private currentContext;
withContext(context: string, fn: () => void): void;
command(name: string, description: string): CommandBuilder;
parseValue(value: string): any;
parse(argv: string[]): void;
showHelp(): void;
}