Skip to content

basalt / cli/src / CommandContext

Interface: CommandContext ​

Defined in: cli/src/command.ts:12

Properties ​

app ​

> app: BasaltApp

Defined in: cli/src/command.ts:13


args ​

> args: string[]

Defined in: cli/src/command.ts:17

Positional arguments after the command name.


container ​

> container: Container

Defined in: cli/src/command.ts:14


flags ​

> flags: Record<string, string | boolean>

Defined in: cli/src/command.ts:19

Parsed flags: --key=value → string, --flag → true.


io ​

> io: CommandIo

Defined in: cli/src/command.ts:15

Released under the MIT License.