Skip to content

Commit

Permalink
cmd/completion: Remove unneeded documentation
Browse files Browse the repository at this point in the history
We don't provide completion for PowerShell, we support only Linux and
instructions for loading completion files are redundant in Toolbx.

Fallout from containers#840

containers#1055
  • Loading branch information
HarryMichal committed May 20, 2022
1 parent 803d628 commit a7b7145
Showing 1 changed file with 2 additions and 34 deletions.
36 changes: 2 additions & 34 deletions src/cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit a7b7145

Please sign in to comment.