#compdef pgp-sig2dot-cli

autoload -U is-at-least

_pgp-sig2dot-cli() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

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

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'*-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]' \
":: :_pgp-sig2dot-cli_commands" \
"*::: :->pgp-sig2dot-cli" \
&& ret=0
    case $state in
    (pgp-sig2dot-cli)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:pgp-sig2dot-cli-command-$line[1]:"
        case $line[1] in
            (cli)
_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]' \
":: :_pgp-sig2dot-cli__cli_commands" \
"*::: :->cli" \
&& ret=0

    case $state in
    (cli)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:pgp-sig2dot-cli-cli-command-$line[1]:"
        case $line[1] in
            (manpage)
_arguments "${_arguments_options[@]}" : \
'--path=[Output Path]:PATH:_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]' \
&& ret=0
;;
(complete)
_arguments "${_arguments_options[@]}" : \
'--output=[Output Path]:OUTPUT:_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]' \
':args:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_pgp-sig2dot-cli__cli__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:pgp-sig2dot-cli-cli-help-command-$line[1]:"
        case $line[1] in
            (manpage)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(complete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(draw)
_arguments "${_arguments_options[@]}" : \
'*-k+[Specific keys by fingerprint]:FINGERPRINT:_default' \
'*--fingerprint=[Specific keys by fingerprint]:FINGERPRINT:_default' \
'-i+[Import OpenPGP key set from file or stdin]:PATH:_default' \
'--import=[Import OpenPGP key set from file or stdin]:PATH:_default' \
'--keyserver=[Key server address]:KEYSERVER:_default' \
'--gossip=[Gossip the trust paths to the targets (given above by \`--fingerprint\`), with an integer value which means the depth limit of gossiping]:GOSSIP:_default' \
'*--trust-root=[Set the trust roots in the gossip mode]:FINGERPRINT:_default' \
'-t+[The output format]:OUTPUT_TYPE:((DOT\:""
METADATA\:"DOT format with metadata in JSON format in label"
KEY_BLOCK\:"OpenPGP key block format can be imported to GnuPG, etc"
MAP42\:"Works with https\://github.com/cryolitia/map42"))' \
'--type=[The output format]:OUTPUT_TYPE:((DOT\:""
METADATA\:"DOT format with metadata in JSON format in label"
KEY_BLOCK\:"OpenPGP key block format can be imported to GnuPG, etc"
MAP42\:"Works with https\://github.com/cryolitia/map42"))' \
'-p[Include only primary UIDs]' \
'--show-primary-uid-only[Include only primary UIDs]' \
'--show-self-sigs[Include self-signatures]' \
'--online[Fetch the newest keys from key server]' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
'*--keyserver=[Key server addresses]' \
'*--from=[Sources to fetch keys from]:FROM:((key-server\:"Fetch from key servers"
wkd\:"Fetch from Web Key Directory"
github\:"Fetch from GitHub"
all\:"All"))' \
'*-v[Increase logging verbosity]' \
'*--verbose[Increase logging verbosity]' \
'(-v --verbose)*-q[Decrease logging verbosity]' \
'(-v --verbose)*--quiet[Decrease logging verbosity]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':input -- Input string as keyword to search keys:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_pgp-sig2dot-cli__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:pgp-sig2dot-cli-help-command-$line[1]:"
        case $line[1] in
            (cli)
_arguments "${_arguments_options[@]}" : \
":: :_pgp-sig2dot-cli__help__cli_commands" \
"*::: :->cli" \
&& ret=0

    case $state in
    (cli)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:pgp-sig2dot-cli-help-cli-command-$line[1]:"
        case $line[1] in
            (manpage)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(complete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(draw)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_pgp-sig2dot-cli_commands] )) ||
_pgp-sig2dot-cli_commands() {
    local commands; commands=(
'cli:Generate Cli manual or shell auto complete file' \
'draw:Draw the trust graph' \
'fetch:Fetch keys from the Internet by multiple sources' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'pgp-sig2dot-cli commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli_commands] )) ||
_pgp-sig2dot-cli__cli_commands() {
    local commands; commands=(
'manpage:Generate manual file' \
'complete:Generate shell auto complete file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'pgp-sig2dot-cli cli commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__complete_commands] )) ||
_pgp-sig2dot-cli__cli__complete_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli cli complete commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__help_commands] )) ||
_pgp-sig2dot-cli__cli__help_commands() {
    local commands; commands=(
'manpage:Generate manual file' \
'complete:Generate shell auto complete file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'pgp-sig2dot-cli cli help commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__help__complete_commands] )) ||
_pgp-sig2dot-cli__cli__help__complete_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli cli help complete commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__help__help_commands] )) ||
_pgp-sig2dot-cli__cli__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli cli help help commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__help__manpage_commands] )) ||
_pgp-sig2dot-cli__cli__help__manpage_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli cli help manpage commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__cli__manpage_commands] )) ||
_pgp-sig2dot-cli__cli__manpage_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli cli manpage commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__draw_commands] )) ||
_pgp-sig2dot-cli__draw_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli draw commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__fetch_commands] )) ||
_pgp-sig2dot-cli__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli fetch commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help_commands] )) ||
_pgp-sig2dot-cli__help_commands() {
    local commands; commands=(
'cli:Generate Cli manual or shell auto complete file' \
'draw:Draw the trust graph' \
'fetch:Fetch keys from the Internet by multiple sources' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'pgp-sig2dot-cli help commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__cli_commands] )) ||
_pgp-sig2dot-cli__help__cli_commands() {
    local commands; commands=(
'manpage:Generate manual file' \
'complete:Generate shell auto complete file' \
    )
    _describe -t commands 'pgp-sig2dot-cli help cli commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__cli__complete_commands] )) ||
_pgp-sig2dot-cli__help__cli__complete_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli help cli complete commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__cli__manpage_commands] )) ||
_pgp-sig2dot-cli__help__cli__manpage_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli help cli manpage commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__draw_commands] )) ||
_pgp-sig2dot-cli__help__draw_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli help draw commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__fetch_commands] )) ||
_pgp-sig2dot-cli__help__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli help fetch commands' commands "$@"
}
(( $+functions[_pgp-sig2dot-cli__help__help_commands] )) ||
_pgp-sig2dot-cli__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'pgp-sig2dot-cli help help commands' commands "$@"
}

if [ "$funcstack[1]" = "_pgp-sig2dot-cli" ]; then
    _pgp-sig2dot-cli "$@"
else
    compdef _pgp-sig2dot-cli pgp-sig2dot-cli
fi
