Cli.registerHandler method
Cli › registerHandler
Unofficial
Register a CLI command handler.Signature:
registerHandler(id: string, description: string, flags: Record<string, CliFlag> | null, handler: (...args: unknown[]) => unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The command identifier. |
| description | string | Description shown in help. |
| flags | Record<string, CliFlag> | null | Flags accepted by this command, or null for none. |
| handler | (...args: unknown[]) => unknown | The handler function. |
Returns: void