Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var (
}
)

const completionDescription = `Output shell completion script for bash, zsh, fish, or Powershell.
const completionDescription = `Output shell completion script for bash, zsh, fish, or PowerShell.
Source the output to enable completion.

# .bashrc
Expand All @@ -58,15 +58,15 @@ source <($COMMAND completion zsh)
# fish
$COMMAND completion fish > ~/.config/fish/completions/$COMMAND.fish

# Powershell
# PowerShell
Output the script to path/to/autocomplete/$COMMAND.ps1 and run it.
`

func buildCompletionCommand(appName string) *Command {
cmd := &Command{
Name: completionCommandName,
Hidden: true,
Usage: "Output shell completion script for bash, zsh, fish, or Powershell",
Usage: "Output shell completion script for bash, zsh, fish, or PowerShell",
Description: strings.ReplaceAll(completionDescription, "$COMMAND", appName),
isCompletionCommand: true,
}
Expand Down