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-4.0.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.1.6 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.1.3 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.1.1 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.1.0 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.40 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.36 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.35 lib/chef-cli/completions/zsh.zsh.erb
chef-dk-4.13.3 lib/chef-dk/completions/zsh.zsh.erb
chef-cli-3.0.33 lib/chef-cli/completions/zsh.zsh.erb
chef-dk-4.12.0 lib/chef-dk/completions/zsh.zsh.erb
chef-cli-3.0.32 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.31 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.30 lib/chef-cli/completions/zsh.zsh.erb
chef-dk-4.11.0 lib/chef-dk/completions/zsh.zsh.erb
chef-cli-3.0.27 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.24 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.23 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.22 lib/chef-cli/completions/zsh.zsh.erb
chef-cli-3.0.16 lib/chef-cli/completions/zsh.zsh.erb