method CLI.run
CLI.run(
args: ReadonlyArray<string>,
cliConfig: CLIConfig,
): Promise<RunResult>

Run the CLI with the provided arguments which do not include the invoked executable name.

Parameters

args: ReadonlyArray<string>

the arguments to parse.

cliConfig: CLIConfig

the CLIConfig for the CLI application.

Return Type

Promise<RunResult>

result of parsing arguments and running appropriate Command instances.

Usage

import type CLI from ".";