#compdef bg_printenv

# AUTOMATICALLY GENERATED by `shtab`


_shtab_bg_printenv_commands() {
  local _commands=(
    
  )
  _describe 'bg_printenv commands' _commands
}

_shtab_bg_printenv_options=(
  {-f,--filepath}"[Environment to use. Expects a file name, usually called BGENV.DAT.]:filepath:_files"
  {-A,--all}"[Probe all partitions for ebg environments]"
  {-p,--part}"[Set environment partition to use]:part:"
  {-v,--verbose}"[Be verbose]"
  {-V,--version}"[Print version]"
  "--help[Show help]"
  {-c,--current}"[Only print values from the current environment]"
  {-o,--output}"[Comma-separated list of fields which are printed]:output:(in_progress revision kernel kernelargs watchdog_timeout ustate user)"
  {-r,--raw}"[Raw output mode]"
  "--usage[Give a short usage message]"
)


_shtab_bg_printenv() {
  local context state line curcontext="$curcontext" one_or_more='(-)*' remainder='(*)'

  if ((${_shtab_bg_printenv_options[(I)${(q)one_or_more}*]} + ${_shtab_bg_printenv_options[(I)${(q)remainder}*]} == 0)); then  # noqa: E501
    _shtab_bg_printenv_options+=(': :_shtab_bg_printenv_commands' '*::: :->bg_printenv')
  fi
  _arguments -C -s $_shtab_bg_printenv_options

  case $state in
    bg_printenv)
      words=($line[1] "${words[@]}")
      (( CURRENT += 1 ))
      curcontext="${curcontext%:*:*}:_shtab_bg_printenv-$line[1]:"
      case $line[1] in
        
      esac
  esac
}



typeset -A opt_args

if [[ $zsh_eval_context[-1] == eval ]]; then
  # eval/source/. command, register function for later
  compdef _shtab_bg_printenv -N bg_printenv
else
  # autoload from fpath, call function directly
  _shtab_bg_printenv "$@"
fi

