mirror of
https://github.com/daylinmorgan/hwylterm.git
synced 2025-01-06 16:37:32 -06:00
Compare commits
No commits in common. "b6202f4f51edadd041d2b5f2aed1d75abcd4ee51" and "713c98c13f2ddea1de4004b988948ea016db163b" have entirely different histories.
b6202f4f51
...
713c98c13f
2 changed files with 2 additions and 18 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,25 +14,9 @@
|
|||
- [ ] add a `commands` option for `newHwylCli` in `hwylterm/cli`
|
||||
- [ ] console object with customizable options to apply formatting
|
||||
|
||||
### cli generato
|
||||
### cli generatorj
|
||||
|
||||
- [ ] 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