From b3bec3cfb0ab75a5dc30dbd55b91e687a3588410 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 23 Jun 2024 23:09:47 +0800 Subject: refactor: cli options and shell completions (#640) --- scripts/completions/aichat.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/completions/aichat.bash') diff --git a/scripts/completions/aichat.bash b/scripts/completions/aichat.bash index 856c6ba..afc81f5 100644 --- a/scripts/completions/aichat.bash +++ b/scripts/completions/aichat.bash @@ -19,7 +19,7 @@ _aichat() { case "${cmd}" in aichat) - opts="-m -r -s -b -e -c -f -H -S -w -h -V --model --prompt --role --session --save-session --agent --rag --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --list-agents --list-rags --help --version" + opts="-m -r -s -a -R -e -c -f -H -S -w -h -V --model --prompt --role --session --save-session --agent --rag --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --list-agents --list-rags --help --version" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -61,11 +61,11 @@ _aichat() { COMPREPLY=($(compgen -W "$("$1" --list-sessions)" -- "${cur}")) return 0 ;; - -b|--agent) + -a|--agent) COMPREPLY=($(compgen -W "$("$1" --list-agents)" -- "${cur}")) return 0 ;; - --rag) + -R|--rag) COMPREPLY=($(compgen -W "$("$1" --list-rags)" -- "${cur}")) return 0 ;; -- cgit v1.2.3