Sha256: ace3cf5d40aea0d22c24863715c91bd3fe0c0d6d9be9e8fe058e5e3e2ef49bc2

Contents?: true

Size: 391 Bytes

Versions: 99

Compression:

Stored size: 391 Bytes

Contents

function _chef() {

  local -a _1st_arguments
  _1st_arguments=(
  <% commands.each do |command, desc| -%>
    '<%=command%>:<%=desc%>'
  <% end -%>
  )

  _arguments \
    '(-v --version)'{-v,--version}'[version information]' \
    '*:: :->subcmds' && return 0

  if (( CURRENT == 1 )); then
    _describe -t commands "chef subcommand" _1st_arguments
    return
  fi
}

compdef _chef chef

Version data entries

99 entries across 99 versions & 2 rubygems

Version Path
chef-cli-5.6.16 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.14 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.13 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.12 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.11 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.8 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.1 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.6.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.5.6 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.5.5 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.5.4 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.5.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.4.2 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.4.1 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.3.1 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.3.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.2.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.1.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-5.0.1 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-4.0.1 lib/chef-cli/completions/zsh.zsh.erb