mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-23 09:45:50 -06:00
22 lines
423 B
Nim
22 lines
423 B
Nim
import std/[strformat]
|
|
import hwylterm, hwylterm/hwylcli
|
|
|
|
hwylCli:
|
|
name "subcommands"
|
|
subcommands:
|
|
[a]
|
|
... "a subcommand with positionals"
|
|
positionals:
|
|
input string
|
|
outputs seq[string]
|
|
run:
|
|
echo fmt"{input=} {outputs=}"
|
|
[b]
|
|
... "a subcommand with flags"
|
|
flags:
|
|
input:
|
|
T string
|
|
outputs:
|
|
T seq[string]
|
|
run:
|
|
echo fmt"{input=} {outputs=}"
|