Skip to main content

Completion

cmd/crewship/cmd_completion.go is the standard Cobra-generated shell-completion command. Emits a completion script to stdout for the requested shell. No flags — just a single positional arg.

crewship completion <shell>

Valid args: bash, zsh, fish, powershell.

Bash

source <(crewship completion bash)
# Persist:
crewship completion bash > /etc/bash_completion.d/crewship

Zsh

source <(crewship completion zsh)
# Persist:
crewship completion zsh > "${fpath[1]}/_crewship"

Fish

crewship completion fish | source
# Persist:
crewship completion fish > ~/.config/fish/completions/crewship.fish

PowerShell

crewship completion powershell | Out-String | Invoke-Expression

See also

  • crewship shell — the in-CLI REPL (different concept — no shell-level completion).
  • crewship login — first command to set up before completions are useful.