{ readonly green: "" | "\u001B[32m"; readonly yellow: "" | "\u001B[33m"; readonly blue: "" | "\u001B[34m"; readonly red: "" | "\u001B[31m"; readonly cyan: "" | "\u001B[36m"; readonly dim: "" | "\u001B[2m"; readonly bold: "" | "\u001B[1m"; readonly reset: "" | "\u001B[0m"; } cli/util.ts
CLI utilities for colors, confirmation, and command delegation.
For structured CLI logging, see create_cli_logger in logger.ts.
Declarations #
3 declarations
colors #
colors
confirm #
confirm
(runtime: TerminalDeps, message: string): Promise<boolean> Prompt for yes/no confirmation.
runtime
runtime with stdout_write and stdin_read capabilities
type TerminalDeps
message
message to display
type
stringreturns
Promise<boolean> true if user confirms, false otherwise
run_local #
run_local
(runtime: CommandDeps, command: string, args: string[]): Promise<CommandResult> Run a local command and return the result.
runtime
runtime with run_command capability
type CommandDeps
command
command to run
type
stringargs
command arguments
type
string[]returns
Promise<CommandResult> command result