class DefaultRuntimeCLI
extends BaseCLI

Default Bun implementation of a CLI using process.stdout, process.stderr and process.argv.

Constructors

new
DefaultRuntimeCLI(
cliConfig: CLIConfig,
envVarsEnabled?: boolean,
configEnabled?: boolean,
keyValueServiceEnabled?: boolean,
validateAllCommands?: boolean,
)

Constructor configures the instance with the specified CLI application details and making use of process.stdout and process.stderr.

Methods

run(): Promise<RunResult>

Run the CLI using process.argv for the arguments and call process.exit() passing the RunState value resulting from the invocation.

Usage

import DefaultRuntimeCLI from ".";