#compdef aaa

autoload -U is-at-least

_aaa() {
    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]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_aaa_commands" \
"*::: :->aaa" \
&& ret=0
    case $state in
    (aaa)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(gen)
_arguments "${_arguments_options[@]}" : \
'-c+[color value]:COLOR:_default' \
'-t+[art title]:TITLE:_default' \
'-a+[art author]:AUTHOR:_default' \
'-o+[art original author]:ORIG:_default' \
'-s+[art source]:SRC:_default' \
'-e+[art editor]:EDIT:_default' \
'--license=[art license]:LICENSE:_default' \
'-l+[should art be looped]:LOOP_FLAG:(true false)' \
'--loop=[should art be looped]:LOOP_FLAG:(true false)' \
'-p+[art preview frame]:PREVIEW:_default' \
'*--tag=[art tags]:TAG:_default' \
'-h[Print help]' \
'--help[Print help]' \
':frames:_default' \
':height:_default' \
':width:_default' \
':text:_default' \
&& ret=0
;;
(play)
_arguments "${_arguments_options[@]}" : \
'--fallback-file=[alternative art path in case primary don'\''t exist of broken]:FILE:_default' \
'--secondary=[secondary art file path]:FILE:_default' \
'-l+[whether loop animation]:LOOP_FLAG:(true false)' \
'--loop=[whether loop animation]:LOOP_FLAG:(true false)' \
'-o+[horizontal offset]:OFFSET:_default' \
'--offset=[horizontal offset]:OFFSET:_default' \
'--secondary-offset=[secondary art horizontal offset]:SECONDARY_OFFSET:_default' \
'-n[disable colors]' \
'--no-colors[disable colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::file -- art file path (alternatively pipe art to stdin):_default' \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
'-a+[art name or file path (alternatively pipe art to stdin and set \`--art --\`)]:ART:_default' \
'--art=[art name or file path (alternatively pipe art to stdin and set \`--art --\`)]:ART:_default' \
'-l+[whether loop animation]:BOOL:(true false)' \
'--loop=[whether loop animation]:BOOL:(true false)' \
'-o+[horizontal art offset]:ART_OFFSET:_default' \
'--art-offset=[horizontal art offset]:ART_OFFSET:_default' \
'--info-offset=[info block horizontal offset]:INFO_OFFSET:_default' \
'--effect=[animation effect]:EFFECT:(none roller-up roller-down roller-left roller-right)' \
'-n[disable colors]' \
'--no-colors[disable colors]' \
'-h[Print help]' \
'--help[Print help]' \
'*::cmd -- fetch command to run:_default' \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
'-f+[preview frame index]:FRAME:_default' \
'-n[disable colors]' \
'--no-colors[disable colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::file -- art file path (alternatively pipe art to stdin):_default' \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::file -- art file path (alternatively pipe art to stdin):_default' \
":: :_aaa__edit_commands" \
"*::: :->edit" \
&& ret=0

    case $state in
    (edit)
        words=($line[2] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-edit-command-$line[2]:"
        case $line[2] in
            (set)
_arguments "${_arguments_options[@]}" : \
'-t+[text channel cell]:TEXT:_default' \
'--text=[text channel cell]:TEXT:_default' \
'-c+[color channel cell]:COLOR:_default' \
'--color=[color channel cell]:COLOR:_default' \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame number:_default' \
':row -- row number:_default' \
':column -- column number:_default' \
&& ret=0
;;
(strip)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::file -- art file path (alternatively pipe art to stdin):_default' \
&& ret=0
;;
(color-map)
_arguments "${_arguments_options[@]}" : \
'--fg=[foreground]:FG:_default' \
'--bg=[background]:BG:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(color-unmap)
_arguments "${_arguments_options[@]}" : \
'--name=[mapping name]:NAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(palette-reset)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(color-force)
_arguments "${_arguments_options[@]}" : \
'--color[color flag]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(crop)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':rf -- from row:_default' \
':rt -- to row:_default' \
':cf -- from column:_default' \
':ct -- to columt:_default' \
&& ret=0
;;
(delay-set)
_arguments "${_arguments_options[@]}" : \
'-f+[frame index]:FRAME:_default' \
'--frame=[frame index]:FRAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
':delay -- delay in milliseconds:_default' \
&& ret=0
;;
(delay-reset)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(fill)
_arguments "${_arguments_options[@]}" : \
'-t+[text channel cell]:TEXT:_default' \
'--text=[text channel cell]:TEXT:_default' \
'-c+[color channel cell]:COLOR:_default' \
'--color=[color channel cell]:COLOR:_default' \
'-f+[frame index]:FRAME:_default' \
'--frame=[frame index]:FRAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(fill-area)
_arguments "${_arguments_options[@]}" : \
'-t+[text channel cell]:TEXT:_default' \
'--text=[text channel cell]:TEXT:_default' \
'-c+[color channel cell]:COLOR:_default' \
'--color=[color channel cell]:COLOR:_default' \
'-f+[frame index]:FRAME:_default' \
'--frame=[frame index]:FRAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
':rf -- from row:_default' \
':rt -- to row:_default' \
':cf -- from column:_default' \
':ct -- to columt:_default' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'-f+[frame index]:FRAME:_default' \
'--frame=[frame index]:FRAME:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(pin-text)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame for pin:_default' \
&& ret=0
;;
(pin-color)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame for pin:_default' \
&& ret=0
;;
(print)
_arguments "${_arguments_options[@]}" : \
'-c+[text color]:COLOR:_default' \
'--color=[text color]:COLOR:_default' \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame number:_default' \
':row -- row number:_default' \
':column -- column number:_default' \
':text:_default' \
&& ret=0
;;
(print-ansi)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame number:_default' \
':row -- row number:_default' \
':column -- column number:_default' \
':text:_default' \
&& ret=0
;;
(filter)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':input -- filter input type:(text ansi frame)' \
'*::cmd -- command:_default' \
&& ret=0
;;
(frame-remove)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame index:_default' \
&& ret=0
;;
(frame-dup)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame index:_default' \
&& ret=0
;;
(frame-ensure)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':frame -- frame index:_default' \
&& ret=0
;;
(frames-slice)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':from -- range start:_default' \
':to -- range end:_default' \
&& ret=0
;;
(frames-swap)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':a -- first frame:_default' \
':b -- second frame:_default' \
&& ret=0
;;
(frames-reverse)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(frame-dedup)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(frame-rf)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':k:_default' \
&& ret=0
;;
(frame-rb)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':k:_default' \
&& ret=0
;;
(title)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::title:_default' \
&& ret=0
;;
(authors)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'*::authors:_default' \
&& ret=0
;;
(origs)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'*::authors:_default' \
&& ret=0
;;
(src)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::src:_default' \
&& ret=0
;;
(editor)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::editor:_default' \
&& ret=0
;;
(license)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::license:_default' \
&& ret=0
;;
(loop)
_arguments "${_arguments_options[@]}" : \
'--loop[]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'::preview:_default' \
&& ret=0
;;
(tag-add)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'*::tags:_default' \
&& ret=0
;;
(tag-rm)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
'*::tags:_default' \
&& ret=0
;;
(tags-drop)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_aaa__edit__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-edit-help-command-$line[1]:"
        case $line[1] in
            (set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(strip)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-map)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-unmap)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(palette-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-force)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(crop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delay-set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delay-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fill)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fill-area)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pin-text)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pin-color)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(print)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(print-ansi)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(filter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-dup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-ensure)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-slice)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-swap)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-reverse)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-dedup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-rf)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-rb)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(title)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(authors)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(origs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(src)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(editor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(license)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(loop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag-add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag-rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tags-drop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(convert)
_arguments "${_arguments_options[@]}" : \
'-n[disable colors]' \
'--no-colors[disable colors]' \
'-h[Print help]' \
'--help[Print help]' \
'::file -- art file path (alternatively pipe art to stdin):_default' \
":: :_aaa__convert_commands" \
"*::: :->convert" \
&& ret=0

    case $state in
    (convert)
        words=($line[2] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-convert-command-$line[2]:"
        case $line[2] in
            (to-frames)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-cast)
_arguments "${_arguments_options[@]}" : \
'-n[disable cursor]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-dur)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-json)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-ttyrec)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-png)
_arguments "${_arguments_options[@]}" : \
'--frame=[frame to render (preview frame by default)]:FRAME:_default' \
'--font-file=[ttf font file]:FILE:_default' \
'--font-size=[font size in pixels]:SIZE:_default' \
'--font-width=[font cell width]:WIDTH:_default' \
'--font-height=[font cell height]:HEIGHT:_default' \
'--glyph-offset-x=[font glyphs x offset]:X:_default' \
'--glyph-offset-y=[font glyphs y offset]:Y:_default' \
'*-m+[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'*--color-map=[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'--fg=[default foreground color]:COLOR:_default' \
'--bg=[default background color]:COLOR:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-gif)
_arguments "${_arguments_options[@]}" : \
'--frame=[frame to render (preview frame by default)]:FRAME:_default' \
'-l+[should art be looped]:LOOP_FLAG:(true false)' \
'--loop=[should art be looped]:LOOP_FLAG:(true false)' \
'--font-file=[ttf font file]:FILE:_default' \
'--font-size=[font size in pixels]:SIZE:_default' \
'--font-width=[font cell width]:WIDTH:_default' \
'--font-height=[font cell height]:HEIGHT:_default' \
'--glyph-offset-x=[font glyphs x offset]:X:_default' \
'--glyph-offset-y=[font glyphs y offset]:Y:_default' \
'*-m+[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'*--color-map=[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'--fg=[default foreground color]:COLOR:_default' \
'--bg=[default background color]:COLOR:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-webp)
_arguments "${_arguments_options[@]}" : \
'--frame=[frame to render (preview frame by default)]:FRAME:_default' \
'-l+[should art be looped]:LOOP_FLAG:(true false)' \
'--loop=[should art be looped]:LOOP_FLAG:(true false)' \
'--quality=[compression quality 0-100]:QUALITY:_default' \
'--font-file=[ttf font file]:FILE:_default' \
'--font-size=[font size in pixels]:SIZE:_default' \
'--font-width=[font cell width]:WIDTH:_default' \
'--font-height=[font cell height]:HEIGHT:_default' \
'--glyph-offset-x=[font glyphs x offset]:X:_default' \
'--glyph-offset-y=[font glyphs y offset]:Y:_default' \
'*-m+[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'*--color-map=[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'--fg=[default foreground color]:COLOR:_default' \
'--bg=[default background color]:COLOR:_default' \
'--losless[losless encoding]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-mp4)
_arguments "${_arguments_options[@]}" : \
'--frame=[frame to render (preview frame by default)]:FRAME:_default' \
'--quality=[compression quality 0-100]:QUALITY:_default' \
'--preset=[encoding preset]:PRESET:_default' \
'--crf=[constant rate factor]:CRF:_default' \
'--font-file=[ttf font file]:FILE:_default' \
'--font-size=[font size in pixels]:SIZE:_default' \
'--font-width=[font cell width]:WIDTH:_default' \
'--font-height=[font cell height]:HEIGHT:_default' \
'--glyph-offset-x=[font glyphs x offset]:X:_default' \
'--glyph-offset-y=[font glyphs y offset]:Y:_default' \
'*-m+[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'*--color-map=[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'--fg=[default foreground color]:COLOR:_default' \
'--bg=[default background color]:COLOR:_default' \
'--losless[losless encoding]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to-svg)
_arguments "${_arguments_options[@]}" : \
'-l+[whether loop animation]:LOOP_FLAG:(true false)' \
'--loop=[whether loop animation]:LOOP_FLAG:(true false)' \
'--font-family=[font family like \`Courier New\`]:FAMILY:_default' \
'--font-size=[font size in pixels]:SIZE:_default' \
'--font-width=[font cell width]:WIDTH:_default' \
'--font-height=[font cell height]:HEIGHT:_default' \
'--font-offset-x=[font foreground x offset]:X:_default' \
'--font-offset-y=[font foreground y offset]:Y:_default' \
'*-m+[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'*--color-map=[define a color mapping like fg\:red=ff0000]:MAP:_default' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(to3a)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_aaa__convert__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-convert-help-command-$line[1]:"
        case $line[1] in
            (to-frames)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-cast)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-dur)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-json)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-ttyrec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-png)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-gif)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-webp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-mp4)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-svg)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to3a)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(from-text)
_arguments "${_arguments_options[@]}" : \
'-l+[should art be looped]:LOOP_FLAG:(true false)' \
'--loop=[should art be looped]:LOOP_FLAG:(true false)' \
'-c+[should colors be enabled (provide a boolean value, e.g. --color true)]:BOOL:(true false)' \
'--color=[should colors be enabled (provide a boolean value, e.g. --color true)]:BOOL:(true false)' \
'-t+[art title]:TITLE:_default' \
'--title=[art title]:TITLE:_default' \
'-a+[art author]:AUTHOR:_default' \
'--author=[art author]:AUTHOR:_default' \
'-o+[art original author]:ORIG:_default' \
'--orig=[art original author]:ORIG:_default' \
'-s+[art source]:SRC:_default' \
'--src=[art source]:SRC:_default' \
'--license=[art license]:LICENSE:_default' \
'*--tag=[art tags (can be used multiple times)]:TAG:_default' \
'--effect=[animation effect]:EFFECT:(none roller-up roller-down roller-left roller-right)' \
'-h[Print help]' \
'--help[Print help]' \
'::file -- text file path (alternatively pipe text to stdin):_default' \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
'-h[Print help]' \
'--help[Print help]' \
':shell -- Shell to generate completions for:(bash zsh fish power-shell elvish nush)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_aaa__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(gen)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(play)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(edit)
_arguments "${_arguments_options[@]}" : \
":: :_aaa__help__edit_commands" \
"*::: :->edit" \
&& ret=0

    case $state in
    (edit)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-help-edit-command-$line[1]:"
        case $line[1] in
            (set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(strip)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-map)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-unmap)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(palette-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(color-force)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(crop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delay-set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(delay-reset)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fill)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fill-area)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pin-text)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(pin-color)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(print)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(print-ansi)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(filter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-dup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-ensure)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-slice)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-swap)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frames-reverse)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-dedup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-rf)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(frame-rb)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(title)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(authors)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(origs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(src)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(editor)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(license)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(loop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(preview)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag-add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tag-rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tags-drop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(convert)
_arguments "${_arguments_options[@]}" : \
":: :_aaa__help__convert_commands" \
"*::: :->convert" \
&& ret=0

    case $state in
    (convert)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:aaa-help-convert-command-$line[1]:"
        case $line[1] in
            (to-frames)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-cast)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-dur)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-json)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-ttyrec)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-png)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-gif)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-webp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-mp4)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to-svg)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(to3a)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(from-text)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(completions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_aaa_commands] )) ||
_aaa_commands() {
    local commands; commands=(
'list:List builtin art' \
'gen:Generate new art' \
'play:Play art (or two side by side) in terminal' \
'fetch:Show system info side by side with animated logo. (by default requires one of fetch tools to be installed\: neofetch | fastfetch | screenfetch | nitch | profetch | leaf | fetch-scm)' \
'preview:Show art preview' \
'edit:Editing subcommands' \
'convert:Format conversion subcommands' \
'from-text:Constructs art from plain text with ANSI color escape codes' \
'completions:Generate shell completions to stdout (shell\: bash|zsh|fish|powershell|elvish)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa commands' commands "$@"
}
(( $+functions[_aaa__completions_commands] )) ||
_aaa__completions_commands() {
    local commands; commands=()
    _describe -t commands 'aaa completions commands' commands "$@"
}
(( $+functions[_aaa__convert_commands] )) ||
_aaa__convert_commands() {
    local commands; commands=(
'to-frames:Print art as a blank line separated sequence of frames with ANSI colors codes' \
'to-cast:Convert art to asciicast v2 format' \
'to-dur:Convert art to durformat (durdraw'\''s ascii art format)' \
'to-json:Convert art to json document' \
'to-ttyrec:Convert art to ttyrec format' \
'to-png:Convert art to png image' \
'to-gif:Convert art to gif animation' \
'to-webp:Convert art to webp animation (ffmpeg cli required)' \
'to-mp4:Convert art to mp4 video (ffmpeg cli required)' \
'to-svg:Convert art to svg animation' \
'to3a:Print art back in 3a format' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa convert commands' commands "$@"
}
(( $+functions[_aaa__convert__help_commands] )) ||
_aaa__convert__help_commands() {
    local commands; commands=(
'to-frames:Print art as a blank line separated sequence of frames with ANSI colors codes' \
'to-cast:Convert art to asciicast v2 format' \
'to-dur:Convert art to durformat (durdraw'\''s ascii art format)' \
'to-json:Convert art to json document' \
'to-ttyrec:Convert art to ttyrec format' \
'to-png:Convert art to png image' \
'to-gif:Convert art to gif animation' \
'to-webp:Convert art to webp animation (ffmpeg cli required)' \
'to-mp4:Convert art to mp4 video (ffmpeg cli required)' \
'to-svg:Convert art to svg animation' \
'to3a:Print art back in 3a format' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa convert help commands' commands "$@"
}
(( $+functions[_aaa__convert__help__help_commands] )) ||
_aaa__convert__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help help commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-cast_commands] )) ||
_aaa__convert__help__to-cast_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-cast commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-dur_commands] )) ||
_aaa__convert__help__to-dur_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-dur commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-frames_commands] )) ||
_aaa__convert__help__to-frames_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-frames commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-gif_commands] )) ||
_aaa__convert__help__to-gif_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-gif commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-json_commands] )) ||
_aaa__convert__help__to-json_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-json commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-mp4_commands] )) ||
_aaa__convert__help__to-mp4_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-mp4 commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-png_commands] )) ||
_aaa__convert__help__to-png_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-png commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-svg_commands] )) ||
_aaa__convert__help__to-svg_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-svg commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-ttyrec_commands] )) ||
_aaa__convert__help__to-ttyrec_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-ttyrec commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to-webp_commands] )) ||
_aaa__convert__help__to-webp_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to-webp commands' commands "$@"
}
(( $+functions[_aaa__convert__help__to3a_commands] )) ||
_aaa__convert__help__to3a_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert help to3a commands' commands "$@"
}
(( $+functions[_aaa__convert__to-cast_commands] )) ||
_aaa__convert__to-cast_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-cast commands' commands "$@"
}
(( $+functions[_aaa__convert__to-dur_commands] )) ||
_aaa__convert__to-dur_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-dur commands' commands "$@"
}
(( $+functions[_aaa__convert__to-frames_commands] )) ||
_aaa__convert__to-frames_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-frames commands' commands "$@"
}
(( $+functions[_aaa__convert__to-gif_commands] )) ||
_aaa__convert__to-gif_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-gif commands' commands "$@"
}
(( $+functions[_aaa__convert__to-json_commands] )) ||
_aaa__convert__to-json_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-json commands' commands "$@"
}
(( $+functions[_aaa__convert__to-mp4_commands] )) ||
_aaa__convert__to-mp4_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-mp4 commands' commands "$@"
}
(( $+functions[_aaa__convert__to-png_commands] )) ||
_aaa__convert__to-png_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-png commands' commands "$@"
}
(( $+functions[_aaa__convert__to-svg_commands] )) ||
_aaa__convert__to-svg_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-svg commands' commands "$@"
}
(( $+functions[_aaa__convert__to-ttyrec_commands] )) ||
_aaa__convert__to-ttyrec_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-ttyrec commands' commands "$@"
}
(( $+functions[_aaa__convert__to-webp_commands] )) ||
_aaa__convert__to-webp_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to-webp commands' commands "$@"
}
(( $+functions[_aaa__convert__to3a_commands] )) ||
_aaa__convert__to3a_commands() {
    local commands; commands=()
    _describe -t commands 'aaa convert to3a commands' commands "$@"
}
(( $+functions[_aaa__edit_commands] )) ||
_aaa__edit_commands() {
    local commands; commands=(
'set:Set cell (text, color)' \
'strip:Strip comments from art' \
'color-map:Search or add new color mapping. Mapped color prints to stderr' \
'color-unmap:Remove color mapping' \
'palette-reset:Reset palette' \
'color-force:Force enable/disable colors' \
'crop:Crop art' \
'delay-set:Set delay for whole art or for specific frame' \
'delay-reset:Reset all art delays to default (50 milis)' \
'fill:Fill all frames or specific one with text and color' \
'fill-area:Fill area in all frames or specific one with text and color' \
'clean:Fill all frames or specific one with default text, color' \
'pin-text:Pin text channel' \
'pin-color:Pin color channel' \
'print:Print text to art' \
'print-ansi:Print text with ansi color codes to art' \
'filter:Filter art with arbitrary program' \
'frame-remove:Remove frame' \
'frame-dup:Duplicate frame' \
'frame-ensure:Ensures a frame exists at the given index, creating new frames if necessary' \
'frames-slice:Remove all frames out of inclusive subrange' \
'frames-swap:Swap two frames' \
'frames-reverse:Reverse frames' \
'frame-dedup:Deduplicate frames' \
'frame-rf:Rotate frames forth' \
'frame-rb:Rotate frames back' \
'title:Set art title' \
'authors:Set authors' \
'origs:Set orig authors' \
'src:Set src' \
'editor:Set editor' \
'license:Set license' \
'loop:Set loop' \
'preview:Set preview frame' \
'tag-add:Add tag to art' \
'tag-rm:Remove tag from art' \
'tags-drop:Drop all tags' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa edit commands' commands "$@"
}
(( $+functions[_aaa__edit__authors_commands] )) ||
_aaa__edit__authors_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit authors commands' commands "$@"
}
(( $+functions[_aaa__edit__clean_commands] )) ||
_aaa__edit__clean_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit clean commands' commands "$@"
}
(( $+functions[_aaa__edit__color-force_commands] )) ||
_aaa__edit__color-force_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit color-force commands' commands "$@"
}
(( $+functions[_aaa__edit__color-map_commands] )) ||
_aaa__edit__color-map_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit color-map commands' commands "$@"
}
(( $+functions[_aaa__edit__color-unmap_commands] )) ||
_aaa__edit__color-unmap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit color-unmap commands' commands "$@"
}
(( $+functions[_aaa__edit__crop_commands] )) ||
_aaa__edit__crop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit crop commands' commands "$@"
}
(( $+functions[_aaa__edit__delay-reset_commands] )) ||
_aaa__edit__delay-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit delay-reset commands' commands "$@"
}
(( $+functions[_aaa__edit__delay-set_commands] )) ||
_aaa__edit__delay-set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit delay-set commands' commands "$@"
}
(( $+functions[_aaa__edit__editor_commands] )) ||
_aaa__edit__editor_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit editor commands' commands "$@"
}
(( $+functions[_aaa__edit__fill_commands] )) ||
_aaa__edit__fill_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit fill commands' commands "$@"
}
(( $+functions[_aaa__edit__fill-area_commands] )) ||
_aaa__edit__fill-area_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit fill-area commands' commands "$@"
}
(( $+functions[_aaa__edit__filter_commands] )) ||
_aaa__edit__filter_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit filter commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-dedup_commands] )) ||
_aaa__edit__frame-dedup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-dedup commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-dup_commands] )) ||
_aaa__edit__frame-dup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-dup commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-ensure_commands] )) ||
_aaa__edit__frame-ensure_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-ensure commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-rb_commands] )) ||
_aaa__edit__frame-rb_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-rb commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-remove_commands] )) ||
_aaa__edit__frame-remove_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-remove commands' commands "$@"
}
(( $+functions[_aaa__edit__frame-rf_commands] )) ||
_aaa__edit__frame-rf_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frame-rf commands' commands "$@"
}
(( $+functions[_aaa__edit__frames-reverse_commands] )) ||
_aaa__edit__frames-reverse_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frames-reverse commands' commands "$@"
}
(( $+functions[_aaa__edit__frames-slice_commands] )) ||
_aaa__edit__frames-slice_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frames-slice commands' commands "$@"
}
(( $+functions[_aaa__edit__frames-swap_commands] )) ||
_aaa__edit__frames-swap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit frames-swap commands' commands "$@"
}
(( $+functions[_aaa__edit__help_commands] )) ||
_aaa__edit__help_commands() {
    local commands; commands=(
'set:Set cell (text, color)' \
'strip:Strip comments from art' \
'color-map:Search or add new color mapping. Mapped color prints to stderr' \
'color-unmap:Remove color mapping' \
'palette-reset:Reset palette' \
'color-force:Force enable/disable colors' \
'crop:Crop art' \
'delay-set:Set delay for whole art or for specific frame' \
'delay-reset:Reset all art delays to default (50 milis)' \
'fill:Fill all frames or specific one with text and color' \
'fill-area:Fill area in all frames or specific one with text and color' \
'clean:Fill all frames or specific one with default text, color' \
'pin-text:Pin text channel' \
'pin-color:Pin color channel' \
'print:Print text to art' \
'print-ansi:Print text with ansi color codes to art' \
'filter:Filter art with arbitrary program' \
'frame-remove:Remove frame' \
'frame-dup:Duplicate frame' \
'frame-ensure:Ensures a frame exists at the given index, creating new frames if necessary' \
'frames-slice:Remove all frames out of inclusive subrange' \
'frames-swap:Swap two frames' \
'frames-reverse:Reverse frames' \
'frame-dedup:Deduplicate frames' \
'frame-rf:Rotate frames forth' \
'frame-rb:Rotate frames back' \
'title:Set art title' \
'authors:Set authors' \
'origs:Set orig authors' \
'src:Set src' \
'editor:Set editor' \
'license:Set license' \
'loop:Set loop' \
'preview:Set preview frame' \
'tag-add:Add tag to art' \
'tag-rm:Remove tag from art' \
'tags-drop:Drop all tags' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa edit help commands' commands "$@"
}
(( $+functions[_aaa__edit__help__authors_commands] )) ||
_aaa__edit__help__authors_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help authors commands' commands "$@"
}
(( $+functions[_aaa__edit__help__clean_commands] )) ||
_aaa__edit__help__clean_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help clean commands' commands "$@"
}
(( $+functions[_aaa__edit__help__color-force_commands] )) ||
_aaa__edit__help__color-force_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help color-force commands' commands "$@"
}
(( $+functions[_aaa__edit__help__color-map_commands] )) ||
_aaa__edit__help__color-map_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help color-map commands' commands "$@"
}
(( $+functions[_aaa__edit__help__color-unmap_commands] )) ||
_aaa__edit__help__color-unmap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help color-unmap commands' commands "$@"
}
(( $+functions[_aaa__edit__help__crop_commands] )) ||
_aaa__edit__help__crop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help crop commands' commands "$@"
}
(( $+functions[_aaa__edit__help__delay-reset_commands] )) ||
_aaa__edit__help__delay-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help delay-reset commands' commands "$@"
}
(( $+functions[_aaa__edit__help__delay-set_commands] )) ||
_aaa__edit__help__delay-set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help delay-set commands' commands "$@"
}
(( $+functions[_aaa__edit__help__editor_commands] )) ||
_aaa__edit__help__editor_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help editor commands' commands "$@"
}
(( $+functions[_aaa__edit__help__fill_commands] )) ||
_aaa__edit__help__fill_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help fill commands' commands "$@"
}
(( $+functions[_aaa__edit__help__fill-area_commands] )) ||
_aaa__edit__help__fill-area_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help fill-area commands' commands "$@"
}
(( $+functions[_aaa__edit__help__filter_commands] )) ||
_aaa__edit__help__filter_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help filter commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-dedup_commands] )) ||
_aaa__edit__help__frame-dedup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-dedup commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-dup_commands] )) ||
_aaa__edit__help__frame-dup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-dup commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-ensure_commands] )) ||
_aaa__edit__help__frame-ensure_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-ensure commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-rb_commands] )) ||
_aaa__edit__help__frame-rb_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-rb commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-remove_commands] )) ||
_aaa__edit__help__frame-remove_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-remove commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frame-rf_commands] )) ||
_aaa__edit__help__frame-rf_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frame-rf commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frames-reverse_commands] )) ||
_aaa__edit__help__frames-reverse_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frames-reverse commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frames-slice_commands] )) ||
_aaa__edit__help__frames-slice_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frames-slice commands' commands "$@"
}
(( $+functions[_aaa__edit__help__frames-swap_commands] )) ||
_aaa__edit__help__frames-swap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help frames-swap commands' commands "$@"
}
(( $+functions[_aaa__edit__help__help_commands] )) ||
_aaa__edit__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help help commands' commands "$@"
}
(( $+functions[_aaa__edit__help__license_commands] )) ||
_aaa__edit__help__license_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help license commands' commands "$@"
}
(( $+functions[_aaa__edit__help__loop_commands] )) ||
_aaa__edit__help__loop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help loop commands' commands "$@"
}
(( $+functions[_aaa__edit__help__origs_commands] )) ||
_aaa__edit__help__origs_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help origs commands' commands "$@"
}
(( $+functions[_aaa__edit__help__palette-reset_commands] )) ||
_aaa__edit__help__palette-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help palette-reset commands' commands "$@"
}
(( $+functions[_aaa__edit__help__pin-color_commands] )) ||
_aaa__edit__help__pin-color_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help pin-color commands' commands "$@"
}
(( $+functions[_aaa__edit__help__pin-text_commands] )) ||
_aaa__edit__help__pin-text_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help pin-text commands' commands "$@"
}
(( $+functions[_aaa__edit__help__preview_commands] )) ||
_aaa__edit__help__preview_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help preview commands' commands "$@"
}
(( $+functions[_aaa__edit__help__print_commands] )) ||
_aaa__edit__help__print_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help print commands' commands "$@"
}
(( $+functions[_aaa__edit__help__print-ansi_commands] )) ||
_aaa__edit__help__print-ansi_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help print-ansi commands' commands "$@"
}
(( $+functions[_aaa__edit__help__set_commands] )) ||
_aaa__edit__help__set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help set commands' commands "$@"
}
(( $+functions[_aaa__edit__help__src_commands] )) ||
_aaa__edit__help__src_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help src commands' commands "$@"
}
(( $+functions[_aaa__edit__help__strip_commands] )) ||
_aaa__edit__help__strip_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help strip commands' commands "$@"
}
(( $+functions[_aaa__edit__help__tag-add_commands] )) ||
_aaa__edit__help__tag-add_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help tag-add commands' commands "$@"
}
(( $+functions[_aaa__edit__help__tag-rm_commands] )) ||
_aaa__edit__help__tag-rm_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help tag-rm commands' commands "$@"
}
(( $+functions[_aaa__edit__help__tags-drop_commands] )) ||
_aaa__edit__help__tags-drop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help tags-drop commands' commands "$@"
}
(( $+functions[_aaa__edit__help__title_commands] )) ||
_aaa__edit__help__title_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit help title commands' commands "$@"
}
(( $+functions[_aaa__edit__license_commands] )) ||
_aaa__edit__license_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit license commands' commands "$@"
}
(( $+functions[_aaa__edit__loop_commands] )) ||
_aaa__edit__loop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit loop commands' commands "$@"
}
(( $+functions[_aaa__edit__origs_commands] )) ||
_aaa__edit__origs_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit origs commands' commands "$@"
}
(( $+functions[_aaa__edit__palette-reset_commands] )) ||
_aaa__edit__palette-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit palette-reset commands' commands "$@"
}
(( $+functions[_aaa__edit__pin-color_commands] )) ||
_aaa__edit__pin-color_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit pin-color commands' commands "$@"
}
(( $+functions[_aaa__edit__pin-text_commands] )) ||
_aaa__edit__pin-text_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit pin-text commands' commands "$@"
}
(( $+functions[_aaa__edit__preview_commands] )) ||
_aaa__edit__preview_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit preview commands' commands "$@"
}
(( $+functions[_aaa__edit__print_commands] )) ||
_aaa__edit__print_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit print commands' commands "$@"
}
(( $+functions[_aaa__edit__print-ansi_commands] )) ||
_aaa__edit__print-ansi_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit print-ansi commands' commands "$@"
}
(( $+functions[_aaa__edit__set_commands] )) ||
_aaa__edit__set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit set commands' commands "$@"
}
(( $+functions[_aaa__edit__src_commands] )) ||
_aaa__edit__src_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit src commands' commands "$@"
}
(( $+functions[_aaa__edit__strip_commands] )) ||
_aaa__edit__strip_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit strip commands' commands "$@"
}
(( $+functions[_aaa__edit__tag-add_commands] )) ||
_aaa__edit__tag-add_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit tag-add commands' commands "$@"
}
(( $+functions[_aaa__edit__tag-rm_commands] )) ||
_aaa__edit__tag-rm_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit tag-rm commands' commands "$@"
}
(( $+functions[_aaa__edit__tags-drop_commands] )) ||
_aaa__edit__tags-drop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit tags-drop commands' commands "$@"
}
(( $+functions[_aaa__edit__title_commands] )) ||
_aaa__edit__title_commands() {
    local commands; commands=()
    _describe -t commands 'aaa edit title commands' commands "$@"
}
(( $+functions[_aaa__fetch_commands] )) ||
_aaa__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'aaa fetch commands' commands "$@"
}
(( $+functions[_aaa__from-text_commands] )) ||
_aaa__from-text_commands() {
    local commands; commands=()
    _describe -t commands 'aaa from-text commands' commands "$@"
}
(( $+functions[_aaa__gen_commands] )) ||
_aaa__gen_commands() {
    local commands; commands=()
    _describe -t commands 'aaa gen commands' commands "$@"
}
(( $+functions[_aaa__help_commands] )) ||
_aaa__help_commands() {
    local commands; commands=(
'list:List builtin art' \
'gen:Generate new art' \
'play:Play art (or two side by side) in terminal' \
'fetch:Show system info side by side with animated logo. (by default requires one of fetch tools to be installed\: neofetch | fastfetch | screenfetch | nitch | profetch | leaf | fetch-scm)' \
'preview:Show art preview' \
'edit:Editing subcommands' \
'convert:Format conversion subcommands' \
'from-text:Constructs art from plain text with ANSI color escape codes' \
'completions:Generate shell completions to stdout (shell\: bash|zsh|fish|powershell|elvish)' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'aaa help commands' commands "$@"
}
(( $+functions[_aaa__help__completions_commands] )) ||
_aaa__help__completions_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help completions commands' commands "$@"
}
(( $+functions[_aaa__help__convert_commands] )) ||
_aaa__help__convert_commands() {
    local commands; commands=(
'to-frames:Print art as a blank line separated sequence of frames with ANSI colors codes' \
'to-cast:Convert art to asciicast v2 format' \
'to-dur:Convert art to durformat (durdraw'\''s ascii art format)' \
'to-json:Convert art to json document' \
'to-ttyrec:Convert art to ttyrec format' \
'to-png:Convert art to png image' \
'to-gif:Convert art to gif animation' \
'to-webp:Convert art to webp animation (ffmpeg cli required)' \
'to-mp4:Convert art to mp4 video (ffmpeg cli required)' \
'to-svg:Convert art to svg animation' \
'to3a:Print art back in 3a format' \
    )
    _describe -t commands 'aaa help convert commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-cast_commands] )) ||
_aaa__help__convert__to-cast_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-cast commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-dur_commands] )) ||
_aaa__help__convert__to-dur_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-dur commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-frames_commands] )) ||
_aaa__help__convert__to-frames_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-frames commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-gif_commands] )) ||
_aaa__help__convert__to-gif_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-gif commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-json_commands] )) ||
_aaa__help__convert__to-json_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-json commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-mp4_commands] )) ||
_aaa__help__convert__to-mp4_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-mp4 commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-png_commands] )) ||
_aaa__help__convert__to-png_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-png commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-svg_commands] )) ||
_aaa__help__convert__to-svg_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-svg commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-ttyrec_commands] )) ||
_aaa__help__convert__to-ttyrec_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-ttyrec commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to-webp_commands] )) ||
_aaa__help__convert__to-webp_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to-webp commands' commands "$@"
}
(( $+functions[_aaa__help__convert__to3a_commands] )) ||
_aaa__help__convert__to3a_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help convert to3a commands' commands "$@"
}
(( $+functions[_aaa__help__edit_commands] )) ||
_aaa__help__edit_commands() {
    local commands; commands=(
'set:Set cell (text, color)' \
'strip:Strip comments from art' \
'color-map:Search or add new color mapping. Mapped color prints to stderr' \
'color-unmap:Remove color mapping' \
'palette-reset:Reset palette' \
'color-force:Force enable/disable colors' \
'crop:Crop art' \
'delay-set:Set delay for whole art or for specific frame' \
'delay-reset:Reset all art delays to default (50 milis)' \
'fill:Fill all frames or specific one with text and color' \
'fill-area:Fill area in all frames or specific one with text and color' \
'clean:Fill all frames or specific one with default text, color' \
'pin-text:Pin text channel' \
'pin-color:Pin color channel' \
'print:Print text to art' \
'print-ansi:Print text with ansi color codes to art' \
'filter:Filter art with arbitrary program' \
'frame-remove:Remove frame' \
'frame-dup:Duplicate frame' \
'frame-ensure:Ensures a frame exists at the given index, creating new frames if necessary' \
'frames-slice:Remove all frames out of inclusive subrange' \
'frames-swap:Swap two frames' \
'frames-reverse:Reverse frames' \
'frame-dedup:Deduplicate frames' \
'frame-rf:Rotate frames forth' \
'frame-rb:Rotate frames back' \
'title:Set art title' \
'authors:Set authors' \
'origs:Set orig authors' \
'src:Set src' \
'editor:Set editor' \
'license:Set license' \
'loop:Set loop' \
'preview:Set preview frame' \
'tag-add:Add tag to art' \
'tag-rm:Remove tag from art' \
'tags-drop:Drop all tags' \
    )
    _describe -t commands 'aaa help edit commands' commands "$@"
}
(( $+functions[_aaa__help__edit__authors_commands] )) ||
_aaa__help__edit__authors_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit authors commands' commands "$@"
}
(( $+functions[_aaa__help__edit__clean_commands] )) ||
_aaa__help__edit__clean_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit clean commands' commands "$@"
}
(( $+functions[_aaa__help__edit__color-force_commands] )) ||
_aaa__help__edit__color-force_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit color-force commands' commands "$@"
}
(( $+functions[_aaa__help__edit__color-map_commands] )) ||
_aaa__help__edit__color-map_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit color-map commands' commands "$@"
}
(( $+functions[_aaa__help__edit__color-unmap_commands] )) ||
_aaa__help__edit__color-unmap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit color-unmap commands' commands "$@"
}
(( $+functions[_aaa__help__edit__crop_commands] )) ||
_aaa__help__edit__crop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit crop commands' commands "$@"
}
(( $+functions[_aaa__help__edit__delay-reset_commands] )) ||
_aaa__help__edit__delay-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit delay-reset commands' commands "$@"
}
(( $+functions[_aaa__help__edit__delay-set_commands] )) ||
_aaa__help__edit__delay-set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit delay-set commands' commands "$@"
}
(( $+functions[_aaa__help__edit__editor_commands] )) ||
_aaa__help__edit__editor_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit editor commands' commands "$@"
}
(( $+functions[_aaa__help__edit__fill_commands] )) ||
_aaa__help__edit__fill_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit fill commands' commands "$@"
}
(( $+functions[_aaa__help__edit__fill-area_commands] )) ||
_aaa__help__edit__fill-area_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit fill-area commands' commands "$@"
}
(( $+functions[_aaa__help__edit__filter_commands] )) ||
_aaa__help__edit__filter_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit filter commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-dedup_commands] )) ||
_aaa__help__edit__frame-dedup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-dedup commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-dup_commands] )) ||
_aaa__help__edit__frame-dup_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-dup commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-ensure_commands] )) ||
_aaa__help__edit__frame-ensure_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-ensure commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-rb_commands] )) ||
_aaa__help__edit__frame-rb_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-rb commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-remove_commands] )) ||
_aaa__help__edit__frame-remove_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-remove commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frame-rf_commands] )) ||
_aaa__help__edit__frame-rf_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frame-rf commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frames-reverse_commands] )) ||
_aaa__help__edit__frames-reverse_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frames-reverse commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frames-slice_commands] )) ||
_aaa__help__edit__frames-slice_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frames-slice commands' commands "$@"
}
(( $+functions[_aaa__help__edit__frames-swap_commands] )) ||
_aaa__help__edit__frames-swap_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit frames-swap commands' commands "$@"
}
(( $+functions[_aaa__help__edit__license_commands] )) ||
_aaa__help__edit__license_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit license commands' commands "$@"
}
(( $+functions[_aaa__help__edit__loop_commands] )) ||
_aaa__help__edit__loop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit loop commands' commands "$@"
}
(( $+functions[_aaa__help__edit__origs_commands] )) ||
_aaa__help__edit__origs_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit origs commands' commands "$@"
}
(( $+functions[_aaa__help__edit__palette-reset_commands] )) ||
_aaa__help__edit__palette-reset_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit palette-reset commands' commands "$@"
}
(( $+functions[_aaa__help__edit__pin-color_commands] )) ||
_aaa__help__edit__pin-color_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit pin-color commands' commands "$@"
}
(( $+functions[_aaa__help__edit__pin-text_commands] )) ||
_aaa__help__edit__pin-text_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit pin-text commands' commands "$@"
}
(( $+functions[_aaa__help__edit__preview_commands] )) ||
_aaa__help__edit__preview_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit preview commands' commands "$@"
}
(( $+functions[_aaa__help__edit__print_commands] )) ||
_aaa__help__edit__print_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit print commands' commands "$@"
}
(( $+functions[_aaa__help__edit__print-ansi_commands] )) ||
_aaa__help__edit__print-ansi_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit print-ansi commands' commands "$@"
}
(( $+functions[_aaa__help__edit__set_commands] )) ||
_aaa__help__edit__set_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit set commands' commands "$@"
}
(( $+functions[_aaa__help__edit__src_commands] )) ||
_aaa__help__edit__src_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit src commands' commands "$@"
}
(( $+functions[_aaa__help__edit__strip_commands] )) ||
_aaa__help__edit__strip_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit strip commands' commands "$@"
}
(( $+functions[_aaa__help__edit__tag-add_commands] )) ||
_aaa__help__edit__tag-add_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit tag-add commands' commands "$@"
}
(( $+functions[_aaa__help__edit__tag-rm_commands] )) ||
_aaa__help__edit__tag-rm_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit tag-rm commands' commands "$@"
}
(( $+functions[_aaa__help__edit__tags-drop_commands] )) ||
_aaa__help__edit__tags-drop_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit tags-drop commands' commands "$@"
}
(( $+functions[_aaa__help__edit__title_commands] )) ||
_aaa__help__edit__title_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help edit title commands' commands "$@"
}
(( $+functions[_aaa__help__fetch_commands] )) ||
_aaa__help__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help fetch commands' commands "$@"
}
(( $+functions[_aaa__help__from-text_commands] )) ||
_aaa__help__from-text_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help from-text commands' commands "$@"
}
(( $+functions[_aaa__help__gen_commands] )) ||
_aaa__help__gen_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help gen commands' commands "$@"
}
(( $+functions[_aaa__help__help_commands] )) ||
_aaa__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help help commands' commands "$@"
}
(( $+functions[_aaa__help__list_commands] )) ||
_aaa__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help list commands' commands "$@"
}
(( $+functions[_aaa__help__play_commands] )) ||
_aaa__help__play_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help play commands' commands "$@"
}
(( $+functions[_aaa__help__preview_commands] )) ||
_aaa__help__preview_commands() {
    local commands; commands=()
    _describe -t commands 'aaa help preview commands' commands "$@"
}
(( $+functions[_aaa__list_commands] )) ||
_aaa__list_commands() {
    local commands; commands=()
    _describe -t commands 'aaa list commands' commands "$@"
}
(( $+functions[_aaa__play_commands] )) ||
_aaa__play_commands() {
    local commands; commands=()
    _describe -t commands 'aaa play commands' commands "$@"
}
(( $+functions[_aaa__preview_commands] )) ||
_aaa__preview_commands() {
    local commands; commands=()
    _describe -t commands 'aaa preview commands' commands "$@"
}

if [ "$funcstack[1]" = "_aaa" ]; then
    _aaa "$@"
else
    compdef _aaa aaa
fi
