Compare commits

...

2 commits

Author SHA1 Message Date
b6202f4f51
add todos 2024-11-07 13:52:28 -06:00
7bcc432e32
add missing space 2024-11-07 13:52:20 -06:00
2 changed files with 18 additions and 2 deletions

View file

@ -692,7 +692,7 @@ func hwylCliImpl(cfg: CliCfg, root = false): NimNode =
subcommandCase.add nnkElse.newTree(
quote do:
hwylCliError("unknown subcommand" & `args`[0])
hwylCliError("unknown subcommand " & `args`[0])
)
runBody.add handleSubCommands.add subCommandCase

18
todo.md
View file

@ -14,9 +14,25 @@
- [ ] add a `commands` option for `newHwylCli` in `hwylterm/cli`
- [ ] console object with customizable options to apply formatting
### cli generatorj
### cli generato
- [ ] add support for types(metavars)/defaults/required in help output
- [ ] abstract the `globalFlags` argument to a `flagGroups` section with a builtin `global`
this would allow users to "inherit" flag groups in subcommands
```nim
flags:
# global flag group auto propagated down
--- global
config "path to config"
--- shared
shared:
`a-flag` "some shared flag"
-- sub
flags:
^shared
unique "some unique flag"
```
## features