Open erikareads opened 6 months ago
In order to support shell completion, we'll need something like a subcommand:
$ glint_cli __complete list of arguments h completion1 description1 completion2 description2
Then we can use a version of cobras shell completion logic: https://github.com/spf13/cobra/blob/main/bash_completionsV2.go
cobra
I'm happy to do the PR that ports the completion logic for each shell from cobra, but glint will need to support the hidden subcommand to make that work.
glint
In order to support shell completion, we'll need something like a subcommand:
Then we can use a version of
cobra
s shell completion logic: https://github.com/spf13/cobra/blob/main/bash_completionsV2.goI'm happy to do the PR that ports the completion logic for each shell from cobra, but
glint
will need to support the hidden subcommand to make that work.