@zturnlibs/ztron-api


cli

Interfaces

CliMatches

Defined in: cli.ts:6

Properties

args

args: Record<string, string | boolean | number | string[]>

Defined in: cli.ts:7

subcommand

subcommand: { matches: CliMatches; name: string; } | null

Defined in: cli.ts:8

Functions

getArgv()

getArgv(): Promise<string[]>

Defined in: cli.ts:17

The raw argv, including the executable (argv[0]).

Returns

Promise<string[]>


getMatches()

getMatches(): Promise<CliMatches>

Defined in: cli.ts:12

The parsed CLI matches (flags, positionals under _, subcommand tree).

Returns

Promise<CliMatches>