mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-23 09:45:50 -06:00
add test for subcommand aliases
This commit is contained in:
parent
d8719a2083
commit
7f37590184
2 changed files with 8 additions and 0 deletions
|
@ -22,3 +22,8 @@ hwylCli:
|
||||||
T seq[string]
|
T seq[string]
|
||||||
run:
|
run:
|
||||||
echo fmt"{input=} {outputs=}"
|
echo fmt"{input=} {outputs=}"
|
||||||
|
[ccccc]
|
||||||
|
... "a subcommand with an alias"
|
||||||
|
alias c
|
||||||
|
run:
|
||||||
|
echo "no flags :)"
|
||||||
|
|
|
@ -30,6 +30,9 @@ suite "hwylcli":
|
||||||
"""input=in outputs=@["out1", "out2"]""",
|
"""input=in outputs=@["out1", "out2"]""",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
okWithArgs("subcommands", "ccccc", """no flags :)""")
|
||||||
|
okWithArgs("subcommands", "c", """no flags :)""")
|
||||||
|
|
||||||
okWithArgs(
|
okWithArgs(
|
||||||
"posFirst", "--help",
|
"posFirst", "--help",
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue