Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 820 Bytes

werf_completion.md

File metadata and controls

39 lines (29 loc) · 820 Bytes

{% if include.header %} {% assign header = include.header %} {% else %} {% assign header = "###" %} {% endif %} Generate bash completion scripts

{{ header }} Syntax

werf completion [options]

{{ header }} Examples

  # Load bash completion
  $ source <(werf completion)
  # or for older bash versions (e.g. bash 3.2 on macOS):
  $ source /dev/stdin <<< "$(werf completion)"

  # Load zsh completion
  $ autoload -Uz compinit && compinit -C
  $ source <(werf completion --shell=zsh)

  # Load fish completion
  $ source <(werf completion --shell=fish)

  # Load powershell completion
  $ werf completion --shell=powershell | Out-String | Invoke-Expression

{{ header }} Options

      --shell='bash'
            Set to bash, zsh, fish or powershell (default $WERF_SHELL or bash)