mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-02-22 17:25:51 -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]
|
||||
run:
|
||||
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"]""",
|
||||
)
|
||||
|
||||
okWithArgs("subcommands", "ccccc", """no flags :)""")
|
||||
okWithArgs("subcommands", "c", """no flags :)""")
|
||||
|
||||
okWithArgs(
|
||||
"posFirst", "--help",
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue