cmd/completion: Remove unneeded documentation
We don't provide completion for PowerShell, we support only Linux and
instructions for loading completion files are redundant in Toolbx.
Fallout from d69ce6794b
https://github.com/containers/toolbox/pull/1055
https://github.com/containers/toolbox/pull/1113
This commit is contained in:
parent
bcc3dc93f5
commit
d9085dd70c
|
|
@ -10,40 +10,8 @@ import (
|
|||
)
|
||||
|
||||
var completionCmd = &cobra.Command{
|
||||
Use: "__completion [bash|zsh|fish|powershell]",
|
||||
Short: "Generate completion script",
|
||||
Long: `To load completions:
|
||||
|
||||
Bash:
|
||||
|
||||
$ source <(toolbox completion bash)
|
||||
|
||||
# To load completions for each session, execute once:
|
||||
# Linux:
|
||||
$ toolbox completion bash > /etc/bash_completion.d/toolbox
|
||||
# macOS:
|
||||
$ toolbox completion bash > /usr/local/etc/bash_completion.d/toolbox
|
||||
|
||||
Zsh:
|
||||
|
||||
# If shell completion is not already enabled in your environment,
|
||||
# you will need to enable it. You can execute the following once:
|
||||
|
||||
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
|
||||
|
||||
# To load completions for each session, execute once:
|
||||
$ toolbox completion zsh > "${fpath[1]}/_toolbox"
|
||||
|
||||
# You will need to start a new shell for this setup to take effect.
|
||||
|
||||
fish:
|
||||
|
||||
$ toolbox completion fish | source
|
||||
|
||||
# To load completions for each session, execute once:
|
||||
$ toolbox completion fish > ~/.config/fish/completions/toolbox.fish
|
||||
|
||||
`,
|
||||
Use: "__completion",
|
||||
Short: "Generate completion script",
|
||||
Hidden: true,
|
||||
DisableFlagsInUseLine: true,
|
||||
ValidArgs: []string{"bash", "zsh", "fish"},
|
||||
|
|
|
|||
Loading…
Reference in New Issue