Skip to content

basalt / cli/src / runCli

Function: runCli() ​

> runCli(options): Promise<number>

Defined in: cli/src/runner.ts:21

Boots the app, resolves the command (built-ins + everything registered in the 'commands' metadata bucket), runs it and shuts the app down. Returns the process exit code instead of calling process.exit — the bin wrapper decides what to do with it.

Parameters ​

options ​

RunCliOptions

Returns ​

Promise<number>

Released under the MIT License.