@geeth.io/cli
Version:
A minimal, class-based CLI command engine with support for nested commands, options, and attributes.
9 lines (8 loc) • 365 B
TypeScript
import { CommandEngine } from '@geeth.io/command-engine';
type ActionHandlerArgs = {
attributes: string[];
options: Record<string, string | boolean>;
};
type ActionMapper = Record<string, (args: ActionHandlerArgs) => void>;
export declare function registerYamlCommands(engine: CommandEngine, yamlText: string, actionMapper?: ActionMapper): void;
export {};