#compdef neomake

autoload -U is-at-least

_neomake() {
    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[@]}" \
'-e[Enables experimental features.]' \
'--experimental[Enables experimental features.]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_neomake_commands" \
"*::: :->neomake" \
&& ret=0
    case $state in
    (neomake)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:neomake-command-$line[1]:"
        case $line[1] in
            (man)
_arguments "${_arguments_options[@]}" \
'-o+[]: : ' \
'--out=[]: : ' \
'-f+[]: :(manpages markdown)' \
'--format=[]: :(manpages markdown)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(autocomplete)
_arguments "${_arguments_options[@]}" \
'-o+[]: : ' \
'--out=[]: : ' \
'-s+[]: :(bash zsh fish elvish powershell)' \
'--shell=[]: :(bash zsh fish elvish powershell)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(workflow)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_neomake__workflow_commands" \
"*::: :->workflow" \
&& ret=0

    case $state in
    (workflow)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:neomake-workflow-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" \
'-t+[The template to init with.]: :(min max python)' \
'--template=[The template to init with.]: :(min max python)' \
'-o+[The file to render the output to. "-" renders to STDOUT.]: : ' \
'--output=[The file to render the output to. "-" renders to STDOUT.]: : ' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(schema)
_arguments "${_arguments_options[@]}" \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_neomake__workflow__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:neomake-workflow-help-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(schema)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(plan)
_arguments "${_arguments_options[@]}" \
'--workflow=[The workflow file to use.]: : ' \
'*-n+[Adding a node to the plan.]: : ' \
'*--node=[Adding a node to the plan.]: : ' \
'*-a+[Specifies a value for handlebars placeholders.]: : ' \
'*--arg=[Specifies a value for handlebars placeholders.]: : ' \
'-o+[Specifies the output format.]: :(yaml json json+p toml ron ron+p)' \
'--output=[Specifies the output format.]: :(yaml json json+p toml ron ron+p)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(execute)
_arguments "${_arguments_options[@]}" \
'-f+[The format of the execution plan.]: : ' \
'--format=[The format of the execution plan.]: : ' \
'-w+[Defines how many worker threads are created in the OS thread pool.]: : ' \
'--workers=[Defines how many worker threads are created in the OS thread pool.]: : ' \
'-p+[The prefix for child process output that gets printed to STDOUT.]: : ' \
'--prefix=[The prefix for child process output that gets printed to STDOUT.]: : ' \
'-s[Disables any output to STDOUT. Useful for preventing leakage of secrets.]' \
'--silent[Disables any output to STDOUT. Useful for preventing leakage of secrets.]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(describe)
_arguments "${_arguments_options[@]}" \
'--workflow=[The workflow file to use.]: : ' \
'*-n+[Adding a node.]: : ' \
'*--node=[Adding a node.]: : ' \
'-o+[The output format.]: :(yaml json json+p toml ron ron+p)' \
'--output=[The output format.]: :(yaml json json+p toml ron ron+p)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
'--workflow=[The workflow file to use.]: : ' \
'-o+[The output format.]: :(yaml json json+p toml ron ron+p)' \
'--output=[The output format.]: :(yaml json json+p toml ron ron+p)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
":: :_neomake__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:neomake-help-command-$line[1]:"
        case $line[1] in
            (man)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(autocomplete)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(workflow)
_arguments "${_arguments_options[@]}" \
":: :_neomake__help__workflow_commands" \
"*::: :->workflow" \
&& ret=0

    case $state in
    (workflow)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:neomake-help-workflow-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(schema)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
(plan)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(execute)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(describe)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_neomake_commands] )) ||
_neomake_commands() {
    local commands; commands=(
'man:Renders the manual.' \
'autocomplete:Renders shell completion scripts.' \
'workflow:Workflow related subcommands.' \
'plan:Creates an execution plan.' \
'p:Creates an execution plan.' \
'execute:Executes an execution plan.' \
'exec:Executes an execution plan.' \
'x:Executes an execution plan.' \
'describe:Describes which nodes are executed in which stages.' \
'desc:Describes which nodes are executed in which stages.' \
'd:Describes which nodes are executed in which stages.' \
'list:Lists all available nodes.' \
'ls:Lists all available nodes.' \
'l:Lists all available nodes.' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'neomake commands' commands "$@"
}
(( $+functions[_neomake__autocomplete_commands] )) ||
_neomake__autocomplete_commands() {
    local commands; commands=()
    _describe -t commands 'neomake autocomplete commands' commands "$@"
}
(( $+functions[_neomake__help__autocomplete_commands] )) ||
_neomake__help__autocomplete_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help autocomplete commands' commands "$@"
}
(( $+functions[_neomake__describe_commands] )) ||
_neomake__describe_commands() {
    local commands; commands=()
    _describe -t commands 'neomake describe commands' commands "$@"
}
(( $+functions[_neomake__help__describe_commands] )) ||
_neomake__help__describe_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help describe commands' commands "$@"
}
(( $+functions[_neomake__execute_commands] )) ||
_neomake__execute_commands() {
    local commands; commands=()
    _describe -t commands 'neomake execute commands' commands "$@"
}
(( $+functions[_neomake__help__execute_commands] )) ||
_neomake__help__execute_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help execute commands' commands "$@"
}
(( $+functions[_neomake__help_commands] )) ||
_neomake__help_commands() {
    local commands; commands=(
'man:Renders the manual.' \
'autocomplete:Renders shell completion scripts.' \
'workflow:Workflow related subcommands.' \
'plan:Creates an execution plan.' \
'execute:Executes an execution plan.' \
'describe:Describes which nodes are executed in which stages.' \
'list:Lists all available nodes.' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'neomake help commands' commands "$@"
}
(( $+functions[_neomake__help__help_commands] )) ||
_neomake__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help help commands' commands "$@"
}
(( $+functions[_neomake__workflow__help_commands] )) ||
_neomake__workflow__help_commands() {
    local commands; commands=(
'init:Initializes a new template workflow.' \
'schema:Renders the workflow schema to STDOUT.' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'neomake workflow help commands' commands "$@"
}
(( $+functions[_neomake__workflow__help__help_commands] )) ||
_neomake__workflow__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'neomake workflow help help commands' commands "$@"
}
(( $+functions[_neomake__help__workflow__init_commands] )) ||
_neomake__help__workflow__init_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help workflow init commands' commands "$@"
}
(( $+functions[_neomake__workflow__help__init_commands] )) ||
_neomake__workflow__help__init_commands() {
    local commands; commands=()
    _describe -t commands 'neomake workflow help init commands' commands "$@"
}
(( $+functions[_neomake__workflow__init_commands] )) ||
_neomake__workflow__init_commands() {
    local commands; commands=()
    _describe -t commands 'neomake workflow init commands' commands "$@"
}
(( $+functions[_neomake__help__list_commands] )) ||
_neomake__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help list commands' commands "$@"
}
(( $+functions[_neomake__list_commands] )) ||
_neomake__list_commands() {
    local commands; commands=()
    _describe -t commands 'neomake list commands' commands "$@"
}
(( $+functions[_neomake__help__man_commands] )) ||
_neomake__help__man_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help man commands' commands "$@"
}
(( $+functions[_neomake__man_commands] )) ||
_neomake__man_commands() {
    local commands; commands=()
    _describe -t commands 'neomake man commands' commands "$@"
}
(( $+functions[_neomake__help__plan_commands] )) ||
_neomake__help__plan_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help plan commands' commands "$@"
}
(( $+functions[_neomake__plan_commands] )) ||
_neomake__plan_commands() {
    local commands; commands=()
    _describe -t commands 'neomake plan commands' commands "$@"
}
(( $+functions[_neomake__help__workflow__schema_commands] )) ||
_neomake__help__workflow__schema_commands() {
    local commands; commands=()
    _describe -t commands 'neomake help workflow schema commands' commands "$@"
}
(( $+functions[_neomake__workflow__help__schema_commands] )) ||
_neomake__workflow__help__schema_commands() {
    local commands; commands=()
    _describe -t commands 'neomake workflow help schema commands' commands "$@"
}
(( $+functions[_neomake__workflow__schema_commands] )) ||
_neomake__workflow__schema_commands() {
    local commands; commands=()
    _describe -t commands 'neomake workflow schema commands' commands "$@"
}
(( $+functions[_neomake__help__workflow_commands] )) ||
_neomake__help__workflow_commands() {
    local commands; commands=(
'init:Initializes a new template workflow.' \
'schema:Renders the workflow schema to STDOUT.' \
    )
    _describe -t commands 'neomake help workflow commands' commands "$@"
}
(( $+functions[_neomake__workflow_commands] )) ||
_neomake__workflow_commands() {
    local commands; commands=(
'init:Initializes a new template workflow.' \
'schema:Renders the workflow schema to STDOUT.' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'neomake workflow commands' commands "$@"
}

if [ "$funcstack[1]" = "_neomake" ]; then
    _neomake "$@"
else
    compdef _neomake neomake
fi
