#compdef anicraft-cli

autoload -U is-at-least

_anicraft-cli() {
    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[@]}" : \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_anicraft-cli_commands" \
"*::: :->anicraft-cli" \
&& ret=0
    case $state in
    (anicraft-cli)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:anicraft-cli-command-$line[1]:"
        case $line[1] in
            (info)
_arguments "${_arguments_options[@]}" : \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(fla-dump)
_arguments "${_arguments_options[@]}" : \
'--stream=[Only this stream'\''s tags]:NAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
':file -- A legacy .fla file:_files' \
&& ret=0
;;
(render)
_arguments "${_arguments_options[@]}" : \
'--out=[The PNG file to write]:FRAME.PNG:_files' \
'--frame=[The frame, counting from 1 (the first one without it)]:N:_default' \
'--scale=[Scale of the stage, 1 for its own size]:S:_default' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(render-seq)
_arguments "${_arguments_options[@]}" : \
'--out-dir=[The folder to write frame_00001.png, ... into]:DIR:_files' \
'--from=[First frame, counting from 1]:N:_default' \
'--to=[Last frame, counting from 1]:N:_default' \
'--scale=[Scale of the stage, 1 for its own size]:S:_default' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(gif)
_arguments "${_arguments_options[@]}" : \
'--out=[The GIF file to write]:ANIM.GIF:_files' \
'--from=[First frame, counting from 1]:N:_default' \
'--to=[Last frame, counting from 1]:N:_default' \
'--scale=[Scale of the stage, 1 for its own size]:S:_default' \
'--overwrite=[Replace the file if it exists (\`--overwrite yes\` still works)]::yes|no:(true false)' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(apng)
_arguments "${_arguments_options[@]}" : \
'--out=[The file to write (.png for apng, .webp for webp)]:ANIM:_files' \
'--from=[First frame, counting from 1]:N:_default' \
'--to=[Last frame, counting from 1]:N:_default' \
'--scale=[Scale of the stage, 1 for its own size]:S:_default' \
'--loop=[How many times it plays\: forever, or a number]:forever|N:_default' \
'--background=[Paint the stage background instead of leaving it transparent]::yes|no:(true false)' \
'--overwrite=[Replace the file if it exists (\`--overwrite yes\` still works)]::yes|no:(true false)' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(webp)
_arguments "${_arguments_options[@]}" : \
'--out=[The file to write (.png for apng, .webp for webp)]:ANIM:_files' \
'--from=[First frame, counting from 1]:N:_default' \
'--to=[Last frame, counting from 1]:N:_default' \
'--scale=[Scale of the stage, 1 for its own size]:S:_default' \
'--loop=[How many times it plays\: forever, or a number]:forever|N:_default' \
'--background=[Paint the stage background instead of leaving it transparent]::yes|no:(true false)' \
'--overwrite=[Replace the file if it exists (\`--overwrite yes\` still works)]::yes|no:(true false)' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'--format=[The format id (\`formats\` lists them)]:ID:_default' \
'--out=[The file to write, or the folder for a sequence]:PATH:_files' \
'(--frame)--from=[First frame, counting from 1]:N:_default' \
'(--frame)--to=[Last frame, counting from 1]:N:_default' \
'--frame=[The frame of png and svg, counting from 1]:N:_default' \
'--options=[Extra parameters of the format, as a JSON object]:JSON:_default' \
'--overwrite=[Replace the file if it exists (\`--overwrite yes\` still works)]::yes|no:(true false)' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(formats)
_arguments "${_arguments_options[@]}" : \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(commands)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'--save=[Save the document afterwards, to this file]:OUT.ANICRAFT:_files' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'--sample[Use the built-in sample instead of a file]' \
'--in-place[Let --save replace the document that was opened]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::inputs -- FILE and the script, or only the script with --sample:_default' \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
'--save=[Save the document afterwards, to this file]:OUT.ANICRAFT:_files' \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'--sample[Use the built-in sample instead of a file]' \
'--in-place[Let --save replace the document that was opened]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'*::inputs -- FILE, the command id and its JSON params; with --sample, the id and the params:_default' \
&& ret=0
;;
(new)
_arguments "${_arguments_options[@]}" : \
'--out=[The document to write]:FILE.ANICRAFT:_files' \
'--width=[Stage width in pixels]:W:_default' \
'--height=[Stage height in pixels]:H:_default' \
'--fps=[Frames per second]:F:_default' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(guide)
_arguments "${_arguments_options[@]}" : \
'--out=[The folder to write the pages to (open index.html)]:FOLDER:_files' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_anicraft-cli__subcmd__guide_commands" \
"*::: :->guide" \
&& ret=0

    case $state in
    (guide)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:anicraft-cli-guide-command-$line[1]:"
        case $line[1] in
            (search)
_arguments "${_arguments_options[@]}" : \
'--limit=[The most results]:N:_default' \
'--json=[Print the results as JSON]::yes|no:(true false)' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
'*::words -- What to look for:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_anicraft-cli__subcmd__guide__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:anicraft-cli-guide-help-command-$line[1]:"
        case $line[1] in
            (search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(bench)
_arguments "${_arguments_options[@]}" : \
'(--stroke --stroke-file)--layers=[Layers of the stress document]:N:_default' \
'(--stroke --stroke-file)--shapes=[Shapes in each layer]:N:_default' \
'(--stroke --stroke-file)--frames=[Frames of the stress document]:N:_default' \
'(--layers --shapes --frames --stroke --stroke-file)--check=[Compare the default scenario with the budgets in docs/performance.md; fails when one is missed]::yes|no:(true false)' \
'(--stroke-file)--stroke=[One long Brush stroke of this many samples\: painting it, picking it, moving it and the merge when it is deselected (ADR 0129)]::SAMPLES:_default' \
'--stroke-file=[The same steps on a document'\''s own artwork]:FILE.ANICRAFT:_files' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
&& ret=0
;;
(serve)
_arguments "${_arguments_options[@]}" : \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'*--automation-read-root=[A folder commands may read from (repeatable); needs --automation-write-root]:FOLDER:_files' \
'--automation-write-root=[The one folder commands may write to; needs --automation-read-root]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
'--plugins=[Load the WebAssembly plug-ins in a folder first]:FOLDER:_files' \
'(--sample)--bridge=[Act live on the AniCraft window listening on this port (or host\:port), not on a file]:PORT:_default' \
'*--automation-read-root=[A folder the assistant'\''s commands may read from (repeatable)]:FOLDER:_files' \
'--automation-write-root=[The one folder the assistant'\''s commands may write to (it may be a read root too)]:FOLDER:_files' \
'()--sample[Use the built-in sample instead of a file]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
'::file -- The document:_files' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_anicraft-cli__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:anicraft-cli-help-command-$line[1]:"
        case $line[1] in
            (info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fla-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(render)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(render-seq)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(gif)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(apng)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(webp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(formats)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(commands)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(new)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(guide)
_arguments "${_arguments_options[@]}" : \
":: :_anicraft-cli__subcmd__help__subcmd__guide_commands" \
"*::: :->guide" \
&& ret=0

    case $state in
    (guide)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:anicraft-cli-help-guide-command-$line[1]:"
        case $line[1] in
            (search)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(bench)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(serve)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(mcp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_anicraft-cli_commands] )) ||
_anicraft-cli_commands() {
    local commands; commands=(
'info:Print a document'\''s state as JSON' \
'fla-dump:List the streams and CPic* record tags of a legacy Flash 8-CS4 .fla file as JSON' \
'render:Render one frame to a PNG file' \
'render-seq:Render a frame range to numbered PNG files in a folder' \
'gif:Write an animated GIF' \
'apng:Write an animated PNG, in full colour with real transparency' \
'webp:Write an animated WebP (lossless), in full colour with real transparency' \
'export:Export in any format\: a built-in one or an exporter plug-in' \
'formats:List every export format, plug-ins included, as JSON' \
'commands:List every command with its parameters, as JSON' \
'run:Run a script on a document\: a JSON array of {cmd, params}, or a saved command' \
'exec:Run one command on a document and print its result' \
'new:Create an empty document' \
'guide:Write the user guide as HTML pages, or search it' \
'bench:Performance probe on a generated stress document (use --release)' \
'serve:Serve JSON-lines requests on stdin and stdout' \
'mcp:Serve the Model Context Protocol on stdin and stdout, for AI assistants (docs/mcp.md)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'anicraft-cli commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__apng_commands] )) ||
_anicraft-cli__subcmd__apng_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli apng commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__bench_commands] )) ||
_anicraft-cli__subcmd__bench_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli bench commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__commands_commands] )) ||
_anicraft-cli__subcmd__commands_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli commands commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__exec_commands] )) ||
_anicraft-cli__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli exec commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__export_commands] )) ||
_anicraft-cli__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli export commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__fla-dump_commands] )) ||
_anicraft-cli__subcmd__fla-dump_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli fla-dump commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__formats_commands] )) ||
_anicraft-cli__subcmd__formats_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli formats commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__gif_commands] )) ||
_anicraft-cli__subcmd__gif_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli gif commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__guide_commands] )) ||
_anicraft-cli__subcmd__guide_commands() {
    local commands; commands=(
'search:Search the user guide\: chapter, heading, page and a passage for each result, best first' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'anicraft-cli guide commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__guide__subcmd__help_commands] )) ||
_anicraft-cli__subcmd__guide__subcmd__help_commands() {
    local commands; commands=(
'search:Search the user guide\: chapter, heading, page and a passage for each result, best first' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'anicraft-cli guide help commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__guide__subcmd__help__subcmd__help_commands] )) ||
_anicraft-cli__subcmd__guide__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli guide help help commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__guide__subcmd__help__subcmd__search_commands] )) ||
_anicraft-cli__subcmd__guide__subcmd__help__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli guide help search commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__guide__subcmd__search_commands] )) ||
_anicraft-cli__subcmd__guide__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli guide search commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help_commands] )) ||
_anicraft-cli__subcmd__help_commands() {
    local commands; commands=(
'info:Print a document'\''s state as JSON' \
'fla-dump:List the streams and CPic* record tags of a legacy Flash 8-CS4 .fla file as JSON' \
'render:Render one frame to a PNG file' \
'render-seq:Render a frame range to numbered PNG files in a folder' \
'gif:Write an animated GIF' \
'apng:Write an animated PNG, in full colour with real transparency' \
'webp:Write an animated WebP (lossless), in full colour with real transparency' \
'export:Export in any format\: a built-in one or an exporter plug-in' \
'formats:List every export format, plug-ins included, as JSON' \
'commands:List every command with its parameters, as JSON' \
'run:Run a script on a document\: a JSON array of {cmd, params}, or a saved command' \
'exec:Run one command on a document and print its result' \
'new:Create an empty document' \
'guide:Write the user guide as HTML pages, or search it' \
'bench:Performance probe on a generated stress document (use --release)' \
'serve:Serve JSON-lines requests on stdin and stdout' \
'mcp:Serve the Model Context Protocol on stdin and stdout, for AI assistants (docs/mcp.md)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'anicraft-cli help commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__apng_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__apng_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help apng commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__bench_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__bench_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help bench commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__commands_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__commands_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help commands commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__exec_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__exec_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help exec commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__export_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__export_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help export commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__fla-dump_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__fla-dump_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help fla-dump commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__formats_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__formats_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help formats commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__gif_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__gif_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help gif commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__guide_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__guide_commands() {
    local commands; commands=(
'search:Search the user guide\: chapter, heading, page and a passage for each result, best first' \
    )
    _describe -t commands 'anicraft-cli help guide commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__guide__subcmd__search_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__guide__subcmd__search_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help guide search commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__help_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help help commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__info_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help info commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__mcp_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__mcp_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help mcp commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__new_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__new_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help new commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__render_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__render_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help render commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__render-seq_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__render-seq_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help render-seq commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__run_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help run commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__serve_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__serve_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help serve commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__help__subcmd__webp_commands] )) ||
_anicraft-cli__subcmd__help__subcmd__webp_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli help webp commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__info_commands] )) ||
_anicraft-cli__subcmd__info_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli info commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__mcp_commands] )) ||
_anicraft-cli__subcmd__mcp_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli mcp commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__new_commands] )) ||
_anicraft-cli__subcmd__new_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli new commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__render_commands] )) ||
_anicraft-cli__subcmd__render_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli render commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__render-seq_commands] )) ||
_anicraft-cli__subcmd__render-seq_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli render-seq commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__run_commands] )) ||
_anicraft-cli__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli run commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__serve_commands] )) ||
_anicraft-cli__subcmd__serve_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli serve commands' commands "$@"
}
(( $+functions[_anicraft-cli__subcmd__webp_commands] )) ||
_anicraft-cli__subcmd__webp_commands() {
    local commands; commands=()
    _describe -t commands 'anicraft-cli webp commands' commands "$@"
}

if [ "$funcstack[1]" = "_anicraft-cli" ]; then
    _anicraft-cli "$@"
else
    compdef _anicraft-cli anicraft-cli
fi
