#compdef drt-tools

autoload -U is-at-least

_drt-tools() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'--mirror=[Archive mirror]:MIRROR:_default' \
'--buildd=[\`buildd\` server]:BUILDD:_default' \
'--force-download[Force download of files]' \
'-f[Force processing]' \
'--force[Force processing]' \
'-n[Only print actions to perform without running any commands]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_drt-tools_commands" \
"*::: :->drt-tools" \
&& ret=0
    case $state in
    (drt-tools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:drt-tools-command-$line[1]:"
        case $line[1] in
            (process-excuses)
_arguments "${_arguments_options[@]}" : \
'--ignore-age[Ignore age of packages]' \
'--ignore-autopkgtests[Ignore results from autopkgtests]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(nmu-transition)
_arguments "${_arguments_options[@]}" : \
'-m+[Message for binNMUs]:MESSAGE:_default' \
'--message=[Message for binNMUs]:MESSAGE:_default' \
'--bp=[Build priority]:BUILD_PRIORITY:_default' \
'--dw=[Dependency-wait]:DEP_WAIT:_default' \
'--extra-depends=[Extra dependencies]:EXTRA_DEPENDS:_default' \
'-s+[Suite for binNMUs]:SUITE:_default' \
'--suite=[Suite for binNMUs]:SUITE:_default' \
'*-a+[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*--architecture=[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::input -- Input file with a list of packages:_files' \
&& ret=0
;;
(nmu-buildinfo)
_arguments "${_arguments_options[@]}" : \
'-m+[Message for binNMUs]:MESSAGE:_default' \
'--message=[Message for binNMUs]:MESSAGE:_default' \
'--bp=[Build priority]:BUILD_PRIORITY:_default' \
'--dw=[Dependency-wait]:DEP_WAIT:_default' \
'--extra-depends=[Extra dependencies]:EXTRA_DEPENDS:_default' \
'-s+[Suite for binNMUs]:SUITE:_default' \
'--suite=[Suite for binNMUs]:SUITE:_default' \
'*-a+[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*--architecture=[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::inputs -- Input files:_files' \
&& ret=0
;;
(grep-excuses)
_arguments "${_arguments_options[@]}" : \
'--autopkgtests[Currently not implemented]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':maintainer_package -- The maintainer or package to grep for:_default' \
&& ret=0
;;
(nmu-eso)
_arguments "${_arguments_options[@]}" : \
'--bp=[Build priority]:BUILD_PRIORITY:_default' \
'-s+[Suite for binNMUs]:SUITE:_default' \
'--suite=[Suite for binNMUs]:SUITE:_default' \
'*--field=[Select the binary package field to check for outdated information]:FIELD:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(nmu-version-skew)
_arguments "${_arguments_options[@]}" : \
'--bp=[Build priority]:BUILD_PRIORITY:_default' \
'-s+[Suite for binNMUs]:SUITE:_default' \
'--suite=[Suite for binNMUs]:SUITE:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(nmu-list)
_arguments "${_arguments_options[@]}" : \
'-m+[Message for binNMUs]:MESSAGE:_default' \
'--message=[Message for binNMUs]:MESSAGE:_default' \
'--bp=[Build priority]:BUILD_PRIORITY:_default' \
'--dw=[Dependency-wait]:DEP_WAIT:_default' \
'--extra-depends=[Extra dependencies]:EXTRA_DEPENDS:_default' \
'-s+[Suite for binNMUs]:SUITE:_default' \
'--suite=[Suite for binNMUs]:SUITE:_default' \
'*-a+[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*--architecture=[Architectures for binNMUs]:ARCHITECTURE:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::input -- Input file with a list of packages:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_drt-tools__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:drt-tools-help-command-$line[1]:"
        case $line[1] in
            (process-excuses)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(nmu-transition)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(nmu-buildinfo)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(grep-excuses)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(nmu-eso)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(nmu-version-skew)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(nmu-list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_drt-tools_commands] )) ||
_drt-tools_commands() {
    local commands; commands=(
'process-excuses:Process current excuses.yaml and prepare a list of binNMUs required for testing migration and list of unblocks' \
'nmu-transition:Prepare and schedule binNMUs for a transition' \
'nmu-buildinfo:Prepare binNMUs based on a list of buildinfo files' \
'grep-excuses:Grep excuses for a list of packages and/or maintainers' \
'nmu-eso:Prepare binNMUs to rebuild for outdated Built-Using' \
'nmu-version-skew:Prepare rebuilds for version skew in Multi-Arch\: same packages' \
'nmu-list:BinNMU a list of packages' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'drt-tools commands' commands "$@"
}
(( $+functions[_drt-tools__grep-excuses_commands] )) ||
_drt-tools__grep-excuses_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools grep-excuses commands' commands "$@"
}
(( $+functions[_drt-tools__help_commands] )) ||
_drt-tools__help_commands() {
    local commands; commands=(
'process-excuses:Process current excuses.yaml and prepare a list of binNMUs required for testing migration and list of unblocks' \
'nmu-transition:Prepare and schedule binNMUs for a transition' \
'nmu-buildinfo:Prepare binNMUs based on a list of buildinfo files' \
'grep-excuses:Grep excuses for a list of packages and/or maintainers' \
'nmu-eso:Prepare binNMUs to rebuild for outdated Built-Using' \
'nmu-version-skew:Prepare rebuilds for version skew in Multi-Arch\: same packages' \
'nmu-list:BinNMU a list of packages' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'drt-tools help commands' commands "$@"
}
(( $+functions[_drt-tools__help__grep-excuses_commands] )) ||
_drt-tools__help__grep-excuses_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help grep-excuses commands' commands "$@"
}
(( $+functions[_drt-tools__help__help_commands] )) ||
_drt-tools__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help help commands' commands "$@"
}
(( $+functions[_drt-tools__help__nmu-buildinfo_commands] )) ||
_drt-tools__help__nmu-buildinfo_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help nmu-buildinfo commands' commands "$@"
}
(( $+functions[_drt-tools__help__nmu-eso_commands] )) ||
_drt-tools__help__nmu-eso_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help nmu-eso commands' commands "$@"
}
(( $+functions[_drt-tools__help__nmu-list_commands] )) ||
_drt-tools__help__nmu-list_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help nmu-list commands' commands "$@"
}
(( $+functions[_drt-tools__help__nmu-transition_commands] )) ||
_drt-tools__help__nmu-transition_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help nmu-transition commands' commands "$@"
}
(( $+functions[_drt-tools__help__nmu-version-skew_commands] )) ||
_drt-tools__help__nmu-version-skew_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help nmu-version-skew commands' commands "$@"
}
(( $+functions[_drt-tools__help__process-excuses_commands] )) ||
_drt-tools__help__process-excuses_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools help process-excuses commands' commands "$@"
}
(( $+functions[_drt-tools__nmu-buildinfo_commands] )) ||
_drt-tools__nmu-buildinfo_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools nmu-buildinfo commands' commands "$@"
}
(( $+functions[_drt-tools__nmu-eso_commands] )) ||
_drt-tools__nmu-eso_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools nmu-eso commands' commands "$@"
}
(( $+functions[_drt-tools__nmu-list_commands] )) ||
_drt-tools__nmu-list_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools nmu-list commands' commands "$@"
}
(( $+functions[_drt-tools__nmu-transition_commands] )) ||
_drt-tools__nmu-transition_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools nmu-transition commands' commands "$@"
}
(( $+functions[_drt-tools__nmu-version-skew_commands] )) ||
_drt-tools__nmu-version-skew_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools nmu-version-skew commands' commands "$@"
}
(( $+functions[_drt-tools__process-excuses_commands] )) ||
_drt-tools__process-excuses_commands() {
    local commands; commands=()
    _describe -t commands 'drt-tools process-excuses commands' commands "$@"
}

if [ "$funcstack[1]" = "_drt-tools" ]; then
    _drt-tools "$@"
else
    compdef _drt-tools drt-tools
fi
