From 33368b57aa077ac13448f4d4927dd8a77934f763 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 11 Nov 2022 13:33:16 -0800 Subject: pds: manpage, shell completions --- extra/adenosine.bash_completions | 48 ++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 7 deletions(-) (limited to 'extra/adenosine.bash_completions') diff --git a/extra/adenosine.bash_completions b/extra/adenosine.bash_completions index 068a82f..2db0670 100644 --- a/extra/adenosine.bash_completions +++ b/extra/adenosine.bash_completions @@ -91,6 +91,9 @@ _adenosine() { status) cmd+="__status" ;; + timeline) + cmd+="__timeline" + ;; update) cmd+="__update" ;; @@ -224,18 +227,18 @@ _adenosine() { return 0 ;; adenosine__account__login) - opts=" -V -v -h -p --help --version --verbose --handle --password --host --auth-token " + 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 - --handle) + --username) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - -h) + -u) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; @@ -286,7 +289,7 @@ _adenosine() { return 0 ;; adenosine__account__register) - opts=" -V -v -e -h -p -r --help --version --verbose --email --handle --password --recovery-key --host --auth-token " + opts=" -h -V -v -e -u -p -r -i --help --version --verbose --email --username --password --recovery-key --invite-code --host --auth-token " if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -301,11 +304,11 @@ _adenosine() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - --handle) + --username) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; - -h) + -u) COMPREPLY=($(compgen -f "${cur}")) return 0 ;; @@ -325,6 +328,14 @@ _adenosine() { COMPREPLY=($(compgen -f "${cur}")) return 0 ;; + --invite-code) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; --host) COMPREPLY=($(compgen -f "${cur}")) return 0 @@ -341,7 +352,7 @@ _adenosine() { return 0 ;; adenosine__bsky) - opts=" -h -V -v --help --version --verbose --host --auth-token feed notifications post repost like follow profile search-users help" + opts=" -h -V -v --help --version --verbose --host --auth-token feed timeline notifications post repost like follow profile search-users help" if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -570,6 +581,29 @@ _adenosine() { COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 ;; + adenosine__bsky__timeline) + 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__create) opts=" -h -V -v --help --version --verbose --host --auth-token ... " if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then -- cgit v1.2.3