diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2022-10-28 00:37:39 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-10-28 00:37:39 -0700 | 
| commit | 174e1efbbb646e19ac335b335e13db3aa313d44e (patch) | |
| tree | 5eadc2d04e6ab2b8f09560bb078db64cf4948a6b /extra/adenosine.zsh_completions | |
| parent | cfb1b59eec918f3da266ca7b6fe4116e98c15f5a (diff) | |
| download | adenosine-174e1efbbb646e19ac335b335e13db3aa313d44e.tar.gz adenosine-174e1efbbb646e19ac335b335e13db3aa313d44e.zip | |
CLI: shell completions
Diffstat (limited to 'extra/adenosine.zsh_completions')
| -rw-r--r-- | extra/adenosine.zsh_completions | 925 | 
1 files changed, 925 insertions, 0 deletions
| diff --git a/extra/adenosine.zsh_completions b/extra/adenosine.zsh_completions new file mode 100644 index 0000000..d9d5644 --- /dev/null +++ b/extra/adenosine.zsh_completions @@ -0,0 +1,925 @@ +_adenosine() { +    local i cur prev opts cmds +    COMPREPLY=() +    cur="${COMP_WORDS[COMP_CWORD]}" +    prev="${COMP_WORDS[COMP_CWORD-1]}" +    cmd="" +    opts="" + +    for i in ${COMP_WORDS[@]} +    do +        case "${i}" in +            adenosine) +                cmd="adenosine" +                ;; +             +            account) +                cmd+="__account" +                ;; +            bsky) +                cmd+="__bsky" +                ;; +            create) +                cmd+="__create" +                ;; +            delete) +                cmd+="__delete" +                ;; +            describe) +                cmd+="__describe" +                ;; +            export) +                cmd+="__export" +                ;; +            feed) +                cmd+="__feed" +                ;; +            follow) +                cmd+="__follow" +                ;; +            get) +                cmd+="__get" +                ;; +            help) +                cmd+="__help" +                ;; +            import) +                cmd+="__import" +                ;; +            info) +                cmd+="__info" +                ;; +            like) +                cmd+="__like" +                ;; +            login) +                cmd+="__login" +                ;; +            logout) +                cmd+="__logout" +                ;; +            ls) +                cmd+="__ls" +                ;; +            notifications) +                cmd+="__notifications" +                ;; +            post) +                cmd+="__post" +                ;; +            profile) +                cmd+="__profile" +                ;; +            register) +                cmd+="__register" +                ;; +            repo) +                cmd+="__repo" +                ;; +            repost) +                cmd+="__repost" +                ;; +            resolve) +                cmd+="__resolve" +                ;; +            root) +                cmd+="__root" +                ;; +            search-users) +                cmd+="__search__users" +                ;; +            status) +                cmd+="__status" +                ;; +            update) +                cmd+="__update" +                ;; +            xrpc) +                cmd+="__xrpc" +                ;; +            *) +                ;; +        esac +    done + +    case "${cmd}" in +        adenosine) +            opts=" -v -h -V  --verbose --help --version --host --auth-token --shell-completions   get ls create update delete describe resolve xrpc account repo bsky status help" +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --shell-completions) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +         +        adenosine__account) +            opts=" -h -V -v  --help --version --verbose --host --auth-token   register delete login logout info help" +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__delete) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__help) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__info) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__login) +            opts=" -h -V -v -u -p  --help --version --verbose --username --password --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --username) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                    -u) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --password) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                    -p) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__logout) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__account__register) +            opts=" -h -V -v -e -u -p  --help --version --verbose --email --username --password --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --email) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                    -e) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --username) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                    -u) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --password) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                    -p) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky) +            opts=" -h -V -v  --help --version --verbose --host --auth-token   feed notifications post repost like follow profile search-users help" +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__feed) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <name> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__follow) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__help) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__like) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__notifications) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__post) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <text> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__profile) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <name> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__repost) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__bsky__search__users) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <query> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__create) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <collection> <fields>... " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__delete) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__describe) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <name> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__get) +            opts=" -h -V -v  --help --version --verbose --cid --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --cid) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__help) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__ls) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__repo) +            opts=" -h -V -v  --help --version --verbose --host --auth-token   root export import help" +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__repo__export) +            opts=" -h -V -v  --help --version --verbose --from --host --auth-token  <did> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --from) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__repo__help) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__repo__import) +            opts=" -h -V -v  --help --version --verbose --did --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --did) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__repo__root) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <did> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__resolve) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <name> " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__status) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__update) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <uri> <fields>... " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +        adenosine__xrpc) +            opts=" -h -V -v  --help --version --verbose --host --auth-token  <method> <nsid> <fields>... " +            if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then +                COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +                return 0 +            fi +            case "${prev}" in +                 +                --host) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                --auth-token) +                    COMPREPLY=($(compgen -f "${cur}")) +                    return 0 +                    ;; +                *) +                    COMPREPLY=() +                    ;; +            esac +            COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) +            return 0 +            ;; +    esac +} + +complete -F _adenosine -o bashdefault -o default adenosine | 
