CLI, terminal & markup9 exports
Raw Markdown/cli
Declarative command-line argument and subcommand router DSL (action, query, cmd, scope, mount) with automatic help output.
Functions & symbols#
action#
function
Declares a mutating CLI action route with handler and options.
| Parameter | Type | Optional | Description |
|---|---|---|---|
args | Any | optional | — |
Returns:
Anycmd#
function
Declares a general CLI subcommand route.
| Parameter | Type | Optional | Description |
|---|---|---|---|
args | Any | optional | — |
Returns:
Anyecho-help#
function
Prints help information for available CLI commands.
| Parameter | Type | Optional | Description |
|---|---|---|---|
router-arg | Any | required | — |
target-path | Any | required | — |
Returns:
Anyformat-help#
function
Formats help information for available CLI commands as a string.
| Parameter | Type | Optional | Description |
|---|---|---|---|
router-arg | Any | required | — |
target-path | Any | required | — |
Returns:
Anymount#
function
Mounts a child CLI router at the given command segment.
| Parameter | Type | Optional | Description |
|---|---|---|---|
args | Any | optional | — |
Returns:
Anyquery#
function
Declares a read-only CLI query route with handler and options.
| Parameter | Type | Optional | Description |
|---|---|---|---|
args | Any | optional | — |
Returns:
Anyrouter#
function
Constructs a CLI Router with grouped queries and actions.
| Parameter | Type | Optional | Description |
|---|---|---|---|
route-defs | Any | optional | — |
Returns:
Anyrun#
function
Resolves and executes CLI router.
| Parameter | Type | Optional | Description |
|---|---|---|---|
cli-router | Any | required | — |
args | Any | required | — |
Returns:
Anyscope#
function
Groups nested CLI routes under a common prefix or shared options.
| Parameter | Type | Optional | Description |
|---|---|---|---|
args | Any | optional | — |
Returns:
Any