climate
climate copied to clipboard
"CLI Mate" autogenerates CLIs from structs / functions (nested subcommands, global / local flags, help generation, typo suggestions, shell completion etc.)
Might be neat.
https://tip.golang.org/doc/go1.22#reflect
We could probably do this automatically? But maybe not, in the interest of startup time.
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.7.0 to 1.8.0. Release notes Sourced from github.com/spf13/cobra's releases. v1.8.0 ✨ Features Support usage as plugin for tools like kubectl by @nirs in spf13/cobra#2018 - this means...
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.13.0 to 0.14.0. Commits 6c97a16 all: update go directive to 1.18 See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this...
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.13.0 to 0.14.0. Commits 6e58e47 modfile: improve directory path detection and error text consistency See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any...
Parallel tests would be error prone due to the global state change of args, stdout and stderr -- we could try to panic similar to testing (setenv).
Looks like it may only be looking at the root module.
They already can do this, but the overriding may have problems (for example both the commands come up in help etc.).
Looks like Cobra / pflag don't do this already (should it be no or no-?).