#compdef bite

autoload -U is-at-least

_bite() {
    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[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_bite_commands" \
"*::: :->bite" \
&& ret=0
    case $state in
    (bite)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-command-$line[1]:"
        case $line[1] in
            (bugzilla)
_arguments "${_arguments_options[@]}" : \
'-c+[service connection]:CONNECTION:_default' \
'--connection=[service connection]:CONNECTION:_default' \
'-C+[concurrent requests limit]:VALUE:_default' \
'--concurrent=[concurrent requests limit]:VALUE:_default' \
'(--insecure)--certificate=[custom root certificate]:PATH:_default' \
'--proxy=[custom proxy]:URL:_default' \
'-t+[request timeout in seconds]:SECONDS:_default' \
'--timeout=[request timeout in seconds]:SECONDS:_default' \
'-k+[API key]:KEY:_default' \
'--key=[API key]:KEY:_default' \
'-u+[username]:USER:_default' \
'--user=[username]:USER:_default' \
'-p+[password]:PASSWORD:_default' \
'--password=[password]:PASSWORD:_default' \
'(--certificate)--insecure[ignore invalid service certificates]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__bugzilla_commands" \
"*::: :->bugzilla" \
&& ret=0

    case $state in
    (bugzilla)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-bugzilla-command-$line[1]:"
        case $line[1] in
            (attachment)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__bugzilla__attachment_commands" \
"*::: :->attachment" \
&& ret=0

    case $state in
    (attachment)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-bugzilla-attachment-command-$line[1]:"
        case $line[1] in
            (create)
_arguments "${_arguments_options[@]}" : \
'-c+[attachment comment]:COMMENT:_default' \
'--comment=[attachment comment]:COMMENT:_default' \
'-d+[attachment description]:DESCRIPTION:_default' \
'--description=[attachment description]:DESCRIPTION:_default' \
'*-f+[attachment flags]:VALUE[,...]:_default' \
'*--flags=[attachment flags]:VALUE[,...]:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)-m+[attachment MIME type]:TYPE:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)--mime=[attachment MIME type]:TYPE:_default' \
'-n+[attachment file name]:VALUE:_default' \
'--name=[attachment file name]:VALUE:_default' \
'(-C --compress --auto-compress --auto-truncate -m --mime)-p+[attachment is a patch]' \
'(-C --compress --auto-compress --auto-truncate -m --mime)--patch=[attachment is a patch]' \
'-P+[attachment is private]' \
'--private=[attachment is private]' \
'(-m --mime -p --patch)-C+[compress attachment]' \
'(-m --mime -p --patch)--compress=[compress attachment]' \
'(-m --mime -p --patch)--auto-compress=[auto-compress attachment]' \
'(-m --mime -p --patch)--auto-truncate=[auto-truncate text attachment]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
':ids -- bug IDs or aliases:_default' \
'*::files -- files to attach:_files' \
&& ret=0
;;
(c)
_arguments "${_arguments_options[@]}" : \
'-c+[attachment comment]:COMMENT:_default' \
'--comment=[attachment comment]:COMMENT:_default' \
'-d+[attachment description]:DESCRIPTION:_default' \
'--description=[attachment description]:DESCRIPTION:_default' \
'*-f+[attachment flags]:VALUE[,...]:_default' \
'*--flags=[attachment flags]:VALUE[,...]:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)-m+[attachment MIME type]:TYPE:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)--mime=[attachment MIME type]:TYPE:_default' \
'-n+[attachment file name]:VALUE:_default' \
'--name=[attachment file name]:VALUE:_default' \
'(-C --compress --auto-compress --auto-truncate -m --mime)-p+[attachment is a patch]' \
'(-C --compress --auto-compress --auto-truncate -m --mime)--patch=[attachment is a patch]' \
'-P+[attachment is private]' \
'--private=[attachment is private]' \
'(-m --mime -p --patch)-C+[compress attachment]' \
'(-m --mime -p --patch)--compress=[compress attachment]' \
'(-m --mime -p --patch)--auto-compress=[auto-compress attachment]' \
'(-m --mime -p --patch)--auto-truncate=[auto-truncate text attachment]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
':ids -- bug IDs or aliases:_default' \
'*::files -- files to attach:_files' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'(-d --dir -l --list)-o+[output attachment data]:FILE:_default' \
'(-d --dir -l --list)--output=[output attachment data]:FILE:_default' \
'(-l --list -o --output)-d+[save attachments into a base directory]:PATH:_default' \
'(-l --list -o --output)--dir=[save attachments into a base directory]:PATH:_default' \
'(-d --dir -o --output)-l[list attachment metadata]' \
'(-d --dir -o --output)--list[list attachment metadata]' \
'-O[include outdated attachments]' \
'--outdated[include outdated attachments]' \
'-i[request attachments from bug IDs or aliases]' \
'--item-ids[request attachments from bug IDs or aliases]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs or bug IDs/aliases:_default' \
&& ret=0
;;
(g)
_arguments "${_arguments_options[@]}" : \
'(-d --dir -l --list)-o+[output attachment data]:FILE:_default' \
'(-d --dir -l --list)--output=[output attachment data]:FILE:_default' \
'(-l --list -o --output)-d+[save attachments into a base directory]:PATH:_default' \
'(-l --list -o --output)--dir=[save attachments into a base directory]:PATH:_default' \
'(-d --dir -o --output)-l[list attachment metadata]' \
'(-d --dir -o --output)--list[list attachment metadata]' \
'-O[include outdated attachments]' \
'--outdated[include outdated attachments]' \
'-i[request attachments from bug IDs or aliases]' \
'--item-ids[request attachments from bug IDs or aliases]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs or bug IDs/aliases:_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'-c+[update comment]:VALUE:_default' \
'--comment=[update comment]:VALUE:_default' \
'-d+[update description]:VALUE:_default' \
'--description=[update description]:VALUE:_default' \
'*-f+[update flags]:VALUE[,...]:_default' \
'*--flags=[update flags]:VALUE[,...]:_default' \
'(-p --patch)-m+[update MIME type]:TYPE:_default' \
'(-p --patch)--mime=[update MIME type]:TYPE:_default' \
'-n+[update file name]:VALUE:_default' \
'--name=[update file name]:VALUE:_default' \
'-o+[update obsolete status]' \
'--obsolete=[update obsolete status]' \
'(-m --mime)-p+[update patch status]' \
'(-m --mime)--patch=[update patch status]' \
'-P+[update private status]' \
'--private=[update private status]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs:_default' \
&& ret=0
;;
(u)
_arguments "${_arguments_options[@]}" : \
'-c+[update comment]:VALUE:_default' \
'--comment=[update comment]:VALUE:_default' \
'-d+[update description]:VALUE:_default' \
'--description=[update description]:VALUE:_default' \
'*-f+[update flags]:VALUE[,...]:_default' \
'*--flags=[update flags]:VALUE[,...]:_default' \
'(-p --patch)-m+[update MIME type]:TYPE:_default' \
'(-p --patch)--mime=[update MIME type]:TYPE:_default' \
'-n+[update file name]:VALUE:_default' \
'--name=[update file name]:VALUE:_default' \
'-o+[update obsolete status]' \
'--obsolete=[update obsolete status]' \
'(-m --mime)-p+[update patch status]' \
'(-m --mime)--patch=[update patch status]' \
'-P+[update private status]' \
'--private=[update private status]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(a)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__bugzilla__attachment_commands" \
"*::: :->attachment" \
&& ret=0

    case $state in
    (attachment)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-bugzilla-attachment-command-$line[1]:"
        case $line[1] in
            (create)
_arguments "${_arguments_options[@]}" : \
'-c+[attachment comment]:COMMENT:_default' \
'--comment=[attachment comment]:COMMENT:_default' \
'-d+[attachment description]:DESCRIPTION:_default' \
'--description=[attachment description]:DESCRIPTION:_default' \
'*-f+[attachment flags]:VALUE[,...]:_default' \
'*--flags=[attachment flags]:VALUE[,...]:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)-m+[attachment MIME type]:TYPE:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)--mime=[attachment MIME type]:TYPE:_default' \
'-n+[attachment file name]:VALUE:_default' \
'--name=[attachment file name]:VALUE:_default' \
'(-C --compress --auto-compress --auto-truncate -m --mime)-p+[attachment is a patch]' \
'(-C --compress --auto-compress --auto-truncate -m --mime)--patch=[attachment is a patch]' \
'-P+[attachment is private]' \
'--private=[attachment is private]' \
'(-m --mime -p --patch)-C+[compress attachment]' \
'(-m --mime -p --patch)--compress=[compress attachment]' \
'(-m --mime -p --patch)--auto-compress=[auto-compress attachment]' \
'(-m --mime -p --patch)--auto-truncate=[auto-truncate text attachment]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
':ids -- bug IDs or aliases:_default' \
'*::files -- files to attach:_files' \
&& ret=0
;;
(c)
_arguments "${_arguments_options[@]}" : \
'-c+[attachment comment]:COMMENT:_default' \
'--comment=[attachment comment]:COMMENT:_default' \
'-d+[attachment description]:DESCRIPTION:_default' \
'--description=[attachment description]:DESCRIPTION:_default' \
'*-f+[attachment flags]:VALUE[,...]:_default' \
'*--flags=[attachment flags]:VALUE[,...]:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)-m+[attachment MIME type]:TYPE:_default' \
'(-C --compress --auto-compress --auto-truncate -p --patch)--mime=[attachment MIME type]:TYPE:_default' \
'-n+[attachment file name]:VALUE:_default' \
'--name=[attachment file name]:VALUE:_default' \
'(-C --compress --auto-compress --auto-truncate -m --mime)-p+[attachment is a patch]' \
'(-C --compress --auto-compress --auto-truncate -m --mime)--patch=[attachment is a patch]' \
'-P+[attachment is private]' \
'--private=[attachment is private]' \
'(-m --mime -p --patch)-C+[compress attachment]' \
'(-m --mime -p --patch)--compress=[compress attachment]' \
'(-m --mime -p --patch)--auto-compress=[auto-compress attachment]' \
'(-m --mime -p --patch)--auto-truncate=[auto-truncate text attachment]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
':ids -- bug IDs or aliases:_default' \
'*::files -- files to attach:_files' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'(-d --dir -l --list)-o+[output attachment data]:FILE:_default' \
'(-d --dir -l --list)--output=[output attachment data]:FILE:_default' \
'(-l --list -o --output)-d+[save attachments into a base directory]:PATH:_default' \
'(-l --list -o --output)--dir=[save attachments into a base directory]:PATH:_default' \
'(-d --dir -o --output)-l[list attachment metadata]' \
'(-d --dir -o --output)--list[list attachment metadata]' \
'-O[include outdated attachments]' \
'--outdated[include outdated attachments]' \
'-i[request attachments from bug IDs or aliases]' \
'--item-ids[request attachments from bug IDs or aliases]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs or bug IDs/aliases:_default' \
&& ret=0
;;
(g)
_arguments "${_arguments_options[@]}" : \
'(-d --dir -l --list)-o+[output attachment data]:FILE:_default' \
'(-d --dir -l --list)--output=[output attachment data]:FILE:_default' \
'(-l --list -o --output)-d+[save attachments into a base directory]:PATH:_default' \
'(-l --list -o --output)--dir=[save attachments into a base directory]:PATH:_default' \
'(-d --dir -o --output)-l[list attachment metadata]' \
'(-d --dir -o --output)--list[list attachment metadata]' \
'-O[include outdated attachments]' \
'--outdated[include outdated attachments]' \
'-i[request attachments from bug IDs or aliases]' \
'--item-ids[request attachments from bug IDs or aliases]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs or bug IDs/aliases:_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'-c+[update comment]:VALUE:_default' \
'--comment=[update comment]:VALUE:_default' \
'-d+[update description]:VALUE:_default' \
'--description=[update description]:VALUE:_default' \
'*-f+[update flags]:VALUE[,...]:_default' \
'*--flags=[update flags]:VALUE[,...]:_default' \
'(-p --patch)-m+[update MIME type]:TYPE:_default' \
'(-p --patch)--mime=[update MIME type]:TYPE:_default' \
'-n+[update file name]:VALUE:_default' \
'--name=[update file name]:VALUE:_default' \
'-o+[update obsolete status]' \
'--obsolete=[update obsolete status]' \
'(-m --mime)-p+[update patch status]' \
'(-m --mime)--patch=[update patch status]' \
'-P+[update private status]' \
'--private=[update private status]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs:_default' \
&& ret=0
;;
(u)
_arguments "${_arguments_options[@]}" : \
'-c+[update comment]:VALUE:_default' \
'--comment=[update comment]:VALUE:_default' \
'-d+[update description]:VALUE:_default' \
'--description=[update description]:VALUE:_default' \
'*-f+[update flags]:VALUE[,...]:_default' \
'*--flags=[update flags]:VALUE[,...]:_default' \
'(-p --patch)-m+[update MIME type]:TYPE:_default' \
'(-p --patch)--mime=[update MIME type]:TYPE:_default' \
'-n+[update file name]:VALUE:_default' \
'--name=[update file name]:VALUE:_default' \
'-o+[update obsolete status]' \
'--obsolete=[update obsolete status]' \
'(-m --mime)-p+[update patch status]' \
'(-m --mime)--patch=[update patch status]' \
'-P+[update private status]' \
'--private=[update private status]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- attachment IDs:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(comment)
_arguments "${_arguments_options[@]}" : \
'-a+[comment includes attachment]' \
'--attachment=[comment includes attachment]' \
'-c+[comment created at this time or later]:TIME:_default' \
'--created=[comment created at this time or later]:TIME:_default' \
'-R+[user who commented]:USER:_default' \
'--creator=[user who commented]:USER:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(create)
_arguments "${_arguments_options[@]}" : \
'(--from)--from-bug=[read attributes from an existing bug]:ID:_default' \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'*-A+[set aliases]:VALUE[,...]:_default' \
'*--alias=[set aliases]:VALUE[,...]:_default' \
'-a+[set assignee]:USER:_default' \
'--assignee=[set assignee]:USER:_default' \
'*-b+[set blockers]:ID[,...]:_default' \
'*--blocks=[set blockers]:ID[,...]:_default' \
'*--cc=[set CC users]:USER[,...]:_default' \
'-C+[set component]:COMPONENT:_default' \
'--component=[set component]:COMPONENT:_default' \
'*--cf=[set custom field]:NAME:_default:NAME:_default' \
'*-d+[set dependencies]:ID[,...]:_default' \
'*--depends=[set dependencies]:ID[,...]:_default' \
'-D+[set description]:DESCRIPTION:_default' \
'--description=[set description]:DESCRIPTION:_default' \
'*-F+[set flags]:VALUE[,...]:_default' \
'*--flags=[set flags]:VALUE[,...]:_default' \
'*-g+[set groups]' \
'*--groups=[set groups]' \
'*-k+[set keywords]:VALUE[,...]:_default' \
'*--keywords=[set keywords]:VALUE[,...]:_default' \
'--os=[set operating system]:OS:_default' \
'--platform=[set platform]:PLATFORM:_default' \
'--priority=[set priority]:PRIORITY:_default' \
'-p+[set product]:PRODUCT:_default' \
'--product=[set product]:PRODUCT:_default' \
'--qa=[set QA contact]:USER:_default' \
'-r+[set resolution]:RESOLUTION:_default' \
'--resolution=[set resolution]:RESOLUTION:_default' \
'*-U+[set external bug URLs]:VALUE[,...]:_default' \
'*--see-also=[set external bug URLs]:VALUE[,...]:_default' \
'--severity=[set severity]:SEVERITY:_default' \
'-s+[set status]:STATUS:_default' \
'--status=[set status]:STATUS:_default' \
'-S+[set summary]:SUMMARY:_default' \
'--summary=[set summary]:SUMMARY:_default' \
'-T+[set target milestone]:MILESTONE:_default' \
'--target=[set target milestone]:MILESTONE:_default' \
'-u+[set URL]:URL:_default' \
'--url=[set URL]:URL:_default' \
'-V+[set version]:VERSION:_default' \
'--version=[set version]:VERSION:_default' \
'-w+[set whiteboard]:WHITEBOARD:_default' \
'--whiteboard=[set whiteboard]:WHITEBOARD:_default' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(c)
_arguments "${_arguments_options[@]}" : \
'(--from)--from-bug=[read attributes from an existing bug]:ID:_default' \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'*-A+[set aliases]:VALUE[,...]:_default' \
'*--alias=[set aliases]:VALUE[,...]:_default' \
'-a+[set assignee]:USER:_default' \
'--assignee=[set assignee]:USER:_default' \
'*-b+[set blockers]:ID[,...]:_default' \
'*--blocks=[set blockers]:ID[,...]:_default' \
'*--cc=[set CC users]:USER[,...]:_default' \
'-C+[set component]:COMPONENT:_default' \
'--component=[set component]:COMPONENT:_default' \
'*--cf=[set custom field]:NAME:_default:NAME:_default' \
'*-d+[set dependencies]:ID[,...]:_default' \
'*--depends=[set dependencies]:ID[,...]:_default' \
'-D+[set description]:DESCRIPTION:_default' \
'--description=[set description]:DESCRIPTION:_default' \
'*-F+[set flags]:VALUE[,...]:_default' \
'*--flags=[set flags]:VALUE[,...]:_default' \
'*-g+[set groups]' \
'*--groups=[set groups]' \
'*-k+[set keywords]:VALUE[,...]:_default' \
'*--keywords=[set keywords]:VALUE[,...]:_default' \
'--os=[set operating system]:OS:_default' \
'--platform=[set platform]:PLATFORM:_default' \
'--priority=[set priority]:PRIORITY:_default' \
'-p+[set product]:PRODUCT:_default' \
'--product=[set product]:PRODUCT:_default' \
'--qa=[set QA contact]:USER:_default' \
'-r+[set resolution]:RESOLUTION:_default' \
'--resolution=[set resolution]:RESOLUTION:_default' \
'*-U+[set external bug URLs]:VALUE[,...]:_default' \
'*--see-also=[set external bug URLs]:VALUE[,...]:_default' \
'--severity=[set severity]:SEVERITY:_default' \
'-s+[set status]:STATUS:_default' \
'--status=[set status]:STATUS:_default' \
'-S+[set summary]:SUMMARY:_default' \
'--summary=[set summary]:SUMMARY:_default' \
'-T+[set target milestone]:MILESTONE:_default' \
'--target=[set target milestone]:MILESTONE:_default' \
'-u+[set URL]:URL:_default' \
'--url=[set URL]:URL:_default' \
'-V+[set version]:VERSION:_default' \
'--version=[set version]:VERSION:_default' \
'-w+[set whiteboard]:WHITEBOARD:_default' \
'--whiteboard=[set whiteboard]:WHITEBOARD:_default' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(fields)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'-A[disable attachments]' \
'--no-attachments[disable attachments]' \
'-C[disable comments]' \
'--no-comments[disable comments]' \
'-H[disable history]' \
'--no-history[disable history]' \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(g)
_arguments "${_arguments_options[@]}" : \
'-A[disable attachments]' \
'--no-attachments[disable attachments]' \
'-C[disable comments]' \
'--no-comments[disable comments]' \
'-H[disable history]' \
'--no-history[disable history]' \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(history)
_arguments "${_arguments_options[@]}" : \
'-c+[event occurred at this time or later]:TIME:_default' \
'--created=[event occurred at this time or later]:TIME:_default' \
'-R+[user who made change]:USER:_default' \
'--creator=[user who made change]:USER:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'-f+[fields to output]:FIELD[,...]:_default' \
'--fields=[fields to output]:FIELD[,...]:_default' \
'-l+[limit result count]:LIMIT:_default' \
'--limit=[limit result count]:LIMIT:_default' \
'-O+[result starting position]:OFFSET:_default' \
'--offset=[result starting position]:OFFSET:_default' \
'-o+[order query results]:FIELD[,...]:_default' \
'--order=[order query results]:FIELD[,...]:_default' \
'-S+[search using quicksearch syntax]:QUERY:_default' \
'--quicksearch=[search using quicksearch syntax]:QUERY:_default' \
'*-A+[restrict by alias]' \
'*--alias=[restrict by alias]' \
'-@+[restrict by attachments]' \
'--attachments=[restrict by attachments]' \
'*-B+[restrict by blockers]' \
'*--blocks=[restrict by blockers]' \
'-C+[restrict by component]:VALUE[,...]:_default' \
'--component=[restrict by component]:VALUE[,...]:_default' \
'*--cf=[restrict by custom field]:NAME[=VALUE]:_default' \
'*-D+[restrict by dependencies]' \
'*--depends=[restrict by dependencies]' \
'*-F+[restrict by flag]' \
'*--flags=[restrict by flag]' \
'*-g+[restrict by group]' \
'*--groups=[restrict by group]' \
'*--id=[restrict by ID]:ID[,...]:_default' \
'*-k+[restrict by keyword]' \
'*--keywords=[restrict by keyword]' \
'--os=[restrict by operating system]:VALUE[,...]:_default' \
'--platform=[restrict by platform]:VALUE[,...]:_default' \
'--priority=[restrict by priority]:VALUE[,...]:_default' \
'-p+[restrict by product]:VALUE[,...]:_default' \
'--product=[restrict by product]:VALUE[,...]:_default' \
'-r+[restrict by resolution]:VALUE[,...]:_default' \
'--resolution=[restrict by resolution]:VALUE[,...]:_default' \
'*-U+[restrict by tracker URLs]' \
'*--see-also=[restrict by tracker URLs]' \
'--severity=[restrict by severity]:VALUE[,...]:_default' \
'*-s+[restrict by status]:VALUE[,...]:_default' \
'*--status=[restrict by status]:VALUE[,...]:_default' \
'*-t+[restrict by personal tags]' \
'*--tags=[restrict by personal tags]' \
'-T+[restrict by target milestone]:VALUE[,...]:_default' \
'--target=[restrict by target milestone]:VALUE[,...]:_default' \
'*--url=[restrict by URL]' \
'-V+[restrict by version]:VALUE[,...]:_default' \
'--version=[restrict by version]:VALUE[,...]:_default' \
'*-w+[restrict by whiteboard]' \
'*--whiteboard=[restrict by whiteboard]' \
'*--attachment-description=[restrict by description]:VALUE[,...]:_default' \
'*--attachment-filename=[restrict by file name]:VALUE[,...]:_default' \
'*--attachment-mime=[restrict by MIME type]:VALUE[,...]:_default' \
'--attachment-is-obsolete=[restrict by obsolete status]' \
'--attachment-is-patch=[restrict by patch status]' \
'--attachment-is-private=[restrict by private status]' \
'--comments=[restrict by comment count]:COMMENTS:_default' \
'--votes=[restrict by vote count]:VOTES:_default' \
'*--changed=[fields changed within time interval]:FIELD[,...][=TIME]:_default' \
'*--changed-by=[fields changed by users]:FIELD[,...]=USER[,...]:_default' \
'*--changed-from=[fields changed from value]:FIELD=VALUE:_default' \
'*--changed-to=[fields changed to value]:FIELD=VALUE:_default' \
'-c+[restrict by creation time]:TIME:_default' \
'--created=[restrict by creation time]:TIME:_default' \
'-u+[restrict by update time]:TIME:_default' \
'--updated=[restrict by update time]:TIME:_default' \
'--closed=[restrict by closed time]:TIME:_default' \
'*-a+[user is assignee]:USER[,...]:_default' \
'*--assignee=[user is assignee]:USER[,...]:_default' \
'*--attacher=[user created attachment]:USER[,...]:_default' \
'*--cc=[user in CC list]' \
'*--commenter=[user who commented]:USER[,...]:_default' \
'*--flagger=[user who set flag]:USER[,...]:_default' \
'*--qa=[user is QA contact]' \
'*-R+[user who reported]:USER[,...]:_default' \
'*--reporter=[user who reported]:USER[,...]:_default' \
'*--comment=[restrict by comment content]:TERM:_default' \
'--comment-is-private=[restrict by private status]' \
'*--comment-tag=[restrict by tag]:VALUE[,...]:_default' \
'-b[open in browser]' \
'--browser[open in browser]' \
'--json[output in JSON format]' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'--paged[enable paging support]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::summary -- restrict by summary content:_default' \
&& ret=0
;;
(s)
_arguments "${_arguments_options[@]}" : \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'-f+[fields to output]:FIELD[,...]:_default' \
'--fields=[fields to output]:FIELD[,...]:_default' \
'-l+[limit result count]:LIMIT:_default' \
'--limit=[limit result count]:LIMIT:_default' \
'-O+[result starting position]:OFFSET:_default' \
'--offset=[result starting position]:OFFSET:_default' \
'-o+[order query results]:FIELD[,...]:_default' \
'--order=[order query results]:FIELD[,...]:_default' \
'-S+[search using quicksearch syntax]:QUERY:_default' \
'--quicksearch=[search using quicksearch syntax]:QUERY:_default' \
'*-A+[restrict by alias]' \
'*--alias=[restrict by alias]' \
'-@+[restrict by attachments]' \
'--attachments=[restrict by attachments]' \
'*-B+[restrict by blockers]' \
'*--blocks=[restrict by blockers]' \
'-C+[restrict by component]:VALUE[,...]:_default' \
'--component=[restrict by component]:VALUE[,...]:_default' \
'*--cf=[restrict by custom field]:NAME[=VALUE]:_default' \
'*-D+[restrict by dependencies]' \
'*--depends=[restrict by dependencies]' \
'*-F+[restrict by flag]' \
'*--flags=[restrict by flag]' \
'*-g+[restrict by group]' \
'*--groups=[restrict by group]' \
'*--id=[restrict by ID]:ID[,...]:_default' \
'*-k+[restrict by keyword]' \
'*--keywords=[restrict by keyword]' \
'--os=[restrict by operating system]:VALUE[,...]:_default' \
'--platform=[restrict by platform]:VALUE[,...]:_default' \
'--priority=[restrict by priority]:VALUE[,...]:_default' \
'-p+[restrict by product]:VALUE[,...]:_default' \
'--product=[restrict by product]:VALUE[,...]:_default' \
'-r+[restrict by resolution]:VALUE[,...]:_default' \
'--resolution=[restrict by resolution]:VALUE[,...]:_default' \
'*-U+[restrict by tracker URLs]' \
'*--see-also=[restrict by tracker URLs]' \
'--severity=[restrict by severity]:VALUE[,...]:_default' \
'*-s+[restrict by status]:VALUE[,...]:_default' \
'*--status=[restrict by status]:VALUE[,...]:_default' \
'*-t+[restrict by personal tags]' \
'*--tags=[restrict by personal tags]' \
'-T+[restrict by target milestone]:VALUE[,...]:_default' \
'--target=[restrict by target milestone]:VALUE[,...]:_default' \
'*--url=[restrict by URL]' \
'-V+[restrict by version]:VALUE[,...]:_default' \
'--version=[restrict by version]:VALUE[,...]:_default' \
'*-w+[restrict by whiteboard]' \
'*--whiteboard=[restrict by whiteboard]' \
'*--attachment-description=[restrict by description]:VALUE[,...]:_default' \
'*--attachment-filename=[restrict by file name]:VALUE[,...]:_default' \
'*--attachment-mime=[restrict by MIME type]:VALUE[,...]:_default' \
'--attachment-is-obsolete=[restrict by obsolete status]' \
'--attachment-is-patch=[restrict by patch status]' \
'--attachment-is-private=[restrict by private status]' \
'--comments=[restrict by comment count]:COMMENTS:_default' \
'--votes=[restrict by vote count]:VOTES:_default' \
'*--changed=[fields changed within time interval]:FIELD[,...][=TIME]:_default' \
'*--changed-by=[fields changed by users]:FIELD[,...]=USER[,...]:_default' \
'*--changed-from=[fields changed from value]:FIELD=VALUE:_default' \
'*--changed-to=[fields changed to value]:FIELD=VALUE:_default' \
'-c+[restrict by creation time]:TIME:_default' \
'--created=[restrict by creation time]:TIME:_default' \
'-u+[restrict by update time]:TIME:_default' \
'--updated=[restrict by update time]:TIME:_default' \
'--closed=[restrict by closed time]:TIME:_default' \
'*-a+[user is assignee]:USER[,...]:_default' \
'*--assignee=[user is assignee]:USER[,...]:_default' \
'*--attacher=[user created attachment]:USER[,...]:_default' \
'*--cc=[user in CC list]' \
'*--commenter=[user who commented]:USER[,...]:_default' \
'*--flagger=[user who set flag]:USER[,...]:_default' \
'*--qa=[user is QA contact]' \
'*-R+[user who reported]:USER[,...]:_default' \
'*--reporter=[user who reported]:USER[,...]:_default' \
'*--comment=[restrict by comment content]:TERM:_default' \
'--comment-is-private=[restrict by private status]' \
'*--comment-tag=[restrict by tag]:VALUE[,...]:_default' \
'-b[open in browser]' \
'--browser[open in browser]' \
'--json[output in JSON format]' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'--paged[enable paging support]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::summary -- restrict by summary content:_default' \
&& ret=0
;;
(update)
_arguments "${_arguments_options[@]}" : \
'(-c --comment -F --comment-from)*-R+[reply to specific comments]' \
'(-c --comment -F --comment-from)*--reply=[reply to specific comments]' \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'*-A+[add/remove/set aliases]' \
'*--alias=[add/remove/set aliases]' \
'-a+[update assignee]' \
'--assignee=[update assignee]' \
'*-b+[add/remove/set blockers]' \
'*--blocks=[add/remove/set blockers]' \
'*--cc=[add/remove CC users]:USER[,...]:_default' \
'(-F --comment-from -R --reply)-c+[add comment]' \
'(-F --comment-from -R --reply)--comment=[add comment]' \
'(-c --comment -R --reply)-F+[add comment from file]:PATH:_files' \
'(-c --comment -R --reply)--comment-from=[add comment from file]:PATH:_files' \
'--comment-privacy=[update comment privacy]:VALUE:_default' \
'-C+[update component]:COMPONENT:_default' \
'--component=[update component]:COMPONENT:_default' \
'*--cf=[update custom field]:NAME:_default:NAME:_default' \
'*-d+[add/remove/set dependencies]' \
'*--depends=[add/remove/set dependencies]' \
'(-s --status -r --resolution)-D+[mark bug as duplicate]:ID:_default' \
'(-s --status -r --resolution)--duplicate-of=[mark bug as duplicate]:ID:_default' \
'*-f+[add/remove flags]:VALUE[,...]:_default' \
'*--flags=[add/remove flags]:VALUE[,...]:_default' \
'*-g+[add/remove groups]:VALUE[,...]:_default' \
'*--groups=[add/remove groups]:VALUE[,...]:_default' \
'*-k+[add/remove/set keywords]' \
'*--keywords=[add/remove/set keywords]' \
'--os=[update operating system]:OS:_default' \
'--platform=[update platform]:PLATFORM:_default' \
'--priority=[update priority]:PRIORITY:_default' \
'-p+[update product]:PRODUCT:_default' \
'--product=[update product]:PRODUCT:_default' \
'--qa=[update QA contact]' \
'-r+[update resolution]:RESOLUTION:_default' \
'--resolution=[update resolution]:RESOLUTION:_default' \
'*-U+[add/remove bug URLs]:VALUE[,...]:_default' \
'*--see-also=[add/remove bug URLs]:VALUE[,...]:_default' \
'--severity=[update severity]:SEVERITY:_default' \
'-s+[update status]:STATUS:_default' \
'--status=[update status]:STATUS:_default' \
'-S+[update summary]:SUMMARY:_default' \
'--summary=[update summary]:SUMMARY:_default' \
'-T+[update target milestone]:MILESTONE:_default' \
'--target=[update target milestone]:MILESTONE:_default' \
'-u+[update URL]:URL:_default' \
'--url=[update URL]:URL:_default' \
'-V+[update version]:VERSION:_default' \
'--version=[update version]:VERSION:_default' \
'-w+[update whiteboard]:WHITEBOARD:_default' \
'--whiteboard=[update whiteboard]:WHITEBOARD:_default' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'-P[enable comment privacy]' \
'--comment-is-private[enable comment privacy]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(u)
_arguments "${_arguments_options[@]}" : \
'(-c --comment -F --comment-from)*-R+[reply to specific comments]' \
'(-c --comment -F --comment-from)*--reply=[reply to specific comments]' \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'*-A+[add/remove/set aliases]' \
'*--alias=[add/remove/set aliases]' \
'-a+[update assignee]' \
'--assignee=[update assignee]' \
'*-b+[add/remove/set blockers]' \
'*--blocks=[add/remove/set blockers]' \
'*--cc=[add/remove CC users]:USER[,...]:_default' \
'(-F --comment-from -R --reply)-c+[add comment]' \
'(-F --comment-from -R --reply)--comment=[add comment]' \
'(-c --comment -R --reply)-F+[add comment from file]:PATH:_files' \
'(-c --comment -R --reply)--comment-from=[add comment from file]:PATH:_files' \
'--comment-privacy=[update comment privacy]:VALUE:_default' \
'-C+[update component]:COMPONENT:_default' \
'--component=[update component]:COMPONENT:_default' \
'*--cf=[update custom field]:NAME:_default:NAME:_default' \
'*-d+[add/remove/set dependencies]' \
'*--depends=[add/remove/set dependencies]' \
'(-s --status -r --resolution)-D+[mark bug as duplicate]:ID:_default' \
'(-s --status -r --resolution)--duplicate-of=[mark bug as duplicate]:ID:_default' \
'*-f+[add/remove flags]:VALUE[,...]:_default' \
'*--flags=[add/remove flags]:VALUE[,...]:_default' \
'*-g+[add/remove groups]:VALUE[,...]:_default' \
'*--groups=[add/remove groups]:VALUE[,...]:_default' \
'*-k+[add/remove/set keywords]' \
'*--keywords=[add/remove/set keywords]' \
'--os=[update operating system]:OS:_default' \
'--platform=[update platform]:PLATFORM:_default' \
'--priority=[update priority]:PRIORITY:_default' \
'-p+[update product]:PRODUCT:_default' \
'--product=[update product]:PRODUCT:_default' \
'--qa=[update QA contact]' \
'-r+[update resolution]:RESOLUTION:_default' \
'--resolution=[update resolution]:RESOLUTION:_default' \
'*-U+[add/remove bug URLs]:VALUE[,...]:_default' \
'*--see-also=[add/remove bug URLs]:VALUE[,...]:_default' \
'--severity=[update severity]:SEVERITY:_default' \
'-s+[update status]:STATUS:_default' \
'--status=[update status]:STATUS:_default' \
'-S+[update summary]:SUMMARY:_default' \
'--summary=[update summary]:SUMMARY:_default' \
'-T+[update target milestone]:MILESTONE:_default' \
'--target=[update target milestone]:MILESTONE:_default' \
'-u+[update URL]:URL:_default' \
'--url=[update URL]:URL:_default' \
'-V+[update version]:VERSION:_default' \
'--version=[update version]:VERSION:_default' \
'-w+[update whiteboard]:WHITEBOARD:_default' \
'--whiteboard=[update whiteboard]:WHITEBOARD:_default' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'-P[enable comment privacy]' \
'--comment-is-private[enable comment privacy]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- bug IDs or aliases:_default' \
&& ret=0
;;
(version)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
        esac
    ;;
esac
;;
(github)
_arguments "${_arguments_options[@]}" : \
'-c+[service connection]:CONNECTION:_default' \
'--connection=[service connection]:CONNECTION:_default' \
'-C+[concurrent requests limit]:VALUE:_default' \
'--concurrent=[concurrent requests limit]:VALUE:_default' \
'(--insecure)--certificate=[custom root certificate]:PATH:_default' \
'--proxy=[custom proxy]:URL:_default' \
'-t+[request timeout in seconds]:SECONDS:_default' \
'--timeout=[request timeout in seconds]:SECONDS:_default' \
'-k+[GitHub personal access token]:KEY:_default' \
'--key=[GitHub personal access token]:KEY:_default' \
'-u+[username]:USER:_default' \
'--user=[username]:USER:_default' \
'(--certificate)--insecure[ignore invalid service certificates]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__github_commands" \
"*::: :->github" \
&& ret=0

    case $state in
    (github)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-github-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- issue IDs:_default' \
&& ret=0
;;
(g)
_arguments "${_arguments_options[@]}" : \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- issue IDs:_default' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'-F+[fields to output]:FIELDS:_default' \
'--fields=[fields to output]:FIELDS:_default' \
'-S+[sorting order for search query]:TERM:_default' \
'--order=[sorting order for search query]:TERM:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::summary -- strings to search for in the summary:_default' \
&& ret=0
;;
(s)
_arguments "${_arguments_options[@]}" : \
'-F+[fields to output]:FIELDS:_default' \
'--fields=[fields to output]:FIELDS:_default' \
'-S+[sorting order for search query]:TERM:_default' \
'--order=[sorting order for search query]:TERM:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::summary -- strings to search for in the summary:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(redmine)
_arguments "${_arguments_options[@]}" : \
'-c+[service connection]:CONNECTION:_default' \
'--connection=[service connection]:CONNECTION:_default' \
'-C+[concurrent requests limit]:VALUE:_default' \
'--concurrent=[concurrent requests limit]:VALUE:_default' \
'(--insecure)--certificate=[custom root certificate]:PATH:_default' \
'--proxy=[custom proxy]:URL:_default' \
'-t+[request timeout in seconds]:SECONDS:_default' \
'--timeout=[request timeout in seconds]:SECONDS:_default' \
'-k+[API key]:KEY:_default' \
'--key=[API key]:KEY:_default' \
'-u+[username]:USER:_default' \
'--user=[username]:USER:_default' \
'-p+[password]:PASSWORD:_default' \
'--password=[password]:PASSWORD:_default' \
'(--certificate)--insecure[ignore invalid service certificates]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__redmine_commands" \
"*::: :->redmine" \
&& ret=0

    case $state in
    (redmine)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-redmine-command-$line[1]:"
        case $line[1] in
            (get)
_arguments "${_arguments_options[@]}" : \
'-C[disable comments]' \
'--no-comments[disable comments]' \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- issue IDs:_default' \
&& ret=0
;;
(g)
_arguments "${_arguments_options[@]}" : \
'-C[disable comments]' \
'--no-comments[disable comments]' \
'-b[open in browser]' \
'--browser[open in browser]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::ids -- issue IDs:_default' \
&& ret=0
;;
(search)
_arguments "${_arguments_options[@]}" : \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'-f+[fields to output]:FIELD[,...]:_default' \
'--fields=[fields to output]:FIELD[,...]:_default' \
'-l+[limit result count]:LIMIT:_default' \
'--limit=[limit result count]:LIMIT:_default' \
'-O+[result starting position]:OFFSET:_default' \
'--offset=[result starting position]:OFFSET:_default' \
'-o+[order query results]:FIELD[,...]:_default' \
'--order=[order query results]:FIELD[,...]:_default' \
'--paged=[enable paging support]' \
'-a+[restrict by assignee status]' \
'--assignee=[restrict by assignee status]' \
'-@+[restrict by attachments]' \
'--attachments=[restrict by attachments]' \
'-B+[restrict by blockers]' \
'--blocks=[restrict by blockers]' \
'-D+[restrict by dependencies]' \
'--blocked=[restrict by dependencies]' \
'-R+[restrict by relations]' \
'--relates=[restrict by relations]' \
'*--id=[restrict by ID]:ID[,...]:_default' \
'-s+[restrict by status]:STATUS:(@open @closed @any)' \
'--status=[restrict by status]:STATUS:(@open @closed @any)' \
'-c+[restrict by creation time]:TIME:_default' \
'--created=[restrict by creation time]:TIME:_default' \
'-u+[restrict by update time]:TIME:_default' \
'--updated=[restrict by update time]:TIME:_default' \
'-C+[restrict by closed time]:TIME:_default' \
'--closed=[restrict by closed time]:TIME:_default' \
'-b[open in browser]' \
'--browser[open in browser]' \
'--json[output in JSON format]' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::subject -- restrict by subject content:_default' \
&& ret=0
;;
(s)
_arguments "${_arguments_options[@]}" : \
'*--from=[read attributes from templates]:NAME[,...]:_default' \
'--to=[write attributes to template]:NAME:_default' \
'-f+[fields to output]:FIELD[,...]:_default' \
'--fields=[fields to output]:FIELD[,...]:_default' \
'-l+[limit result count]:LIMIT:_default' \
'--limit=[limit result count]:LIMIT:_default' \
'-O+[result starting position]:OFFSET:_default' \
'--offset=[result starting position]:OFFSET:_default' \
'-o+[order query results]:FIELD[,...]:_default' \
'--order=[order query results]:FIELD[,...]:_default' \
'--paged=[enable paging support]' \
'-a+[restrict by assignee status]' \
'--assignee=[restrict by assignee status]' \
'-@+[restrict by attachments]' \
'--attachments=[restrict by attachments]' \
'-B+[restrict by blockers]' \
'--blocks=[restrict by blockers]' \
'-D+[restrict by dependencies]' \
'--blocked=[restrict by dependencies]' \
'-R+[restrict by relations]' \
'--relates=[restrict by relations]' \
'*--id=[restrict by ID]:ID[,...]:_default' \
'-s+[restrict by status]:STATUS:(@open @closed @any)' \
'--status=[restrict by status]:STATUS:(@open @closed @any)' \
'-c+[restrict by creation time]:TIME:_default' \
'--created=[restrict by creation time]:TIME:_default' \
'-u+[restrict by update time]:TIME:_default' \
'--updated=[restrict by update time]:TIME:_default' \
'-C+[restrict by closed time]:TIME:_default' \
'--closed=[restrict by closed time]:TIME:_default' \
'-b[open in browser]' \
'--browser[open in browser]' \
'--json[output in JSON format]' \
'-n[skip service interaction]' \
'--dry-run[skip service interaction]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::subject -- restrict by subject content:_default' \
&& ret=0
;;
        esac
    ;;
esac
;;
(completion)
_arguments "${_arguments_options[@]}" : \
'-d+[Target directory for completion files]:DIR:_default' \
'--dir=[Target directory for completion files]:DIR:_default' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'::shell -- Target shell:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_bite__show_commands" \
"*::: :->show" \
&& ret=0

    case $state in
    (show)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:bite-show-command-$line[1]:"
        case $line[1] in
            (connections)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
'*::service -- service types:(bugzilla github redmine)' \
&& ret=0
;;
(services)
_arguments "${_arguments_options[@]}" : \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help]' \
'--help[Print help]' \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_bite_commands] )) ||
_bite_commands() {
    local commands; commands=(
'bugzilla:bugzilla service support' \
'github:github service support' \
'redmine:redmine service support' \
'completion:generate shell completion' \
'show:show service information' \
    )
    _describe -t commands 'bite commands' commands "$@"
}
(( $+functions[_bite__bugzilla_commands] )) ||
_bite__bugzilla_commands() {
    local commands; commands=(
'attachment:Attachment commands' \
'a:Attachment commands' \
'comment:Get bug comments' \
'create:Create bug' \
'c:Create bug' \
'fields:Get bugzilla fields' \
'get:Get bugs' \
'g:Get bugs' \
'history:Get bug changes' \
'search:Search bugs' \
's:Search bugs' \
'update:Update bugs' \
'u:Update bugs' \
'version:Get bugzilla version' \
    )
    _describe -t commands 'bite bugzilla commands' commands "$@"
}
(( $+functions[_bite__bugzilla__attachment_commands] )) ||
_bite__bugzilla__attachment_commands() {
    local commands; commands=(
'create:Create attachments' \
'c:Create attachments' \
'get:Get attachments' \
'g:Get attachments' \
'update:Update attachments' \
'u:Update attachments' \
    )
    _describe -t commands 'bite bugzilla attachment commands' commands "$@"
}
(( $+functions[_bite__bugzilla__attachment__create_commands] )) ||
_bite__bugzilla__attachment__create_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla attachment create commands' commands "$@"
}
(( $+functions[_bite__bugzilla__attachment__get_commands] )) ||
_bite__bugzilla__attachment__get_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla attachment get commands' commands "$@"
}
(( $+functions[_bite__bugzilla__attachment__update_commands] )) ||
_bite__bugzilla__attachment__update_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla attachment update commands' commands "$@"
}
(( $+functions[_bite__bugzilla__comment_commands] )) ||
_bite__bugzilla__comment_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla comment commands' commands "$@"
}
(( $+functions[_bite__bugzilla__create_commands] )) ||
_bite__bugzilla__create_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla create commands' commands "$@"
}
(( $+functions[_bite__bugzilla__fields_commands] )) ||
_bite__bugzilla__fields_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla fields commands' commands "$@"
}
(( $+functions[_bite__bugzilla__get_commands] )) ||
_bite__bugzilla__get_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla get commands' commands "$@"
}
(( $+functions[_bite__bugzilla__history_commands] )) ||
_bite__bugzilla__history_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla history commands' commands "$@"
}
(( $+functions[_bite__bugzilla__search_commands] )) ||
_bite__bugzilla__search_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla search commands' commands "$@"
}
(( $+functions[_bite__bugzilla__update_commands] )) ||
_bite__bugzilla__update_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla update commands' commands "$@"
}
(( $+functions[_bite__bugzilla__version_commands] )) ||
_bite__bugzilla__version_commands() {
    local commands; commands=()
    _describe -t commands 'bite bugzilla version commands' commands "$@"
}
(( $+functions[_bite__completion_commands] )) ||
_bite__completion_commands() {
    local commands; commands=()
    _describe -t commands 'bite completion commands' commands "$@"
}
(( $+functions[_bite__github_commands] )) ||
_bite__github_commands() {
    local commands; commands=(
'get:Get issues' \
'g:Get issues' \
'search:Search issues' \
's:Search issues' \
    )
    _describe -t commands 'bite github commands' commands "$@"
}
(( $+functions[_bite__github__get_commands] )) ||
_bite__github__get_commands() {
    local commands; commands=()
    _describe -t commands 'bite github get commands' commands "$@"
}
(( $+functions[_bite__github__search_commands] )) ||
_bite__github__search_commands() {
    local commands; commands=()
    _describe -t commands 'bite github search commands' commands "$@"
}
(( $+functions[_bite__redmine_commands] )) ||
_bite__redmine_commands() {
    local commands; commands=(
'get:Get issues' \
'g:Get issues' \
'search:Search issues' \
's:Search issues' \
    )
    _describe -t commands 'bite redmine commands' commands "$@"
}
(( $+functions[_bite__redmine__get_commands] )) ||
_bite__redmine__get_commands() {
    local commands; commands=()
    _describe -t commands 'bite redmine get commands' commands "$@"
}
(( $+functions[_bite__redmine__search_commands] )) ||
_bite__redmine__search_commands() {
    local commands; commands=()
    _describe -t commands 'bite redmine search commands' commands "$@"
}
(( $+functions[_bite__show_commands] )) ||
_bite__show_commands() {
    local commands; commands=(
'connections:Show available connections' \
'services:Show available services' \
    )
    _describe -t commands 'bite show commands' commands "$@"
}
(( $+functions[_bite__show__connections_commands] )) ||
_bite__show__connections_commands() {
    local commands; commands=()
    _describe -t commands 'bite show connections commands' commands "$@"
}
(( $+functions[_bite__show__services_commands] )) ||
_bite__show__services_commands() {
    local commands; commands=()
    _describe -t commands 'bite show services commands' commands "$@"
}

if [ "$funcstack[1]" = "_bite" ]; then
    _bite "$@"
else
    compdef _bite bite
fi
