You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I find auto-completion scripts help me to identify the available commands and parameters to commands. I can use tab-completion to avoid breaking out of the command I am typing to uncover simple CLI usage details, like the name, spelling, hyphenation, or existence of a particular parameter.
The Packet CLI does not include auto-completion scripts for my shell, Bash.
Shell completion is can now be enabled:
`source <(packet completion bash)`
This PR also updates links in README.md and options in packet.md.
Closesequinix#56
Signed-off-by: Marques Johansson <marques@packet.com>
Shell completion is can now be enabled:
`source <(packet completion bash)`
This PR also updates links in README.md and options in packet.md.
Closesequinix#56
Signed-off-by: Marques Johansson <marques@packet.com>
What problem are you facing?
As a user, I find auto-completion scripts help me to identify the available commands and parameters to commands. I can use tab-completion to avoid breaking out of the command I am typing to uncover simple CLI usage details, like the name, spelling, hyphenation, or existence of a particular parameter.
The Packet CLI does not include auto-completion scripts for my shell, Bash.
How can Packet help?
The CLI should include a command to generate the autocomplete scripts. This can be implemented here, taking advantage of spf-13/cobra support for the feature, described here: https://github.com/spf13/cobra/blob/master/shell_completions.md (more here https://github.com/spf13/cobra/blob/master/bash_completions.md).
Once the
packet-cli completion bash
(equivalent) command exists,make
should incorporate this.The current approach to triggering generators is to set specific environment variables, this experience could be improved as command-line arguments.
The text was updated successfully, but these errors were encountered: