mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-01-02 15:30:44 -06:00
Compare commits
2 commits
713c98c13f
...
b6202f4f51
Author | SHA1 | Date | |
---|---|---|---|
b6202f4f51 | |||
7bcc432e32 |
2 changed files with 18 additions and 2 deletions
|
@ -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
18
todo.md
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue