summaryrefslogtreecommitdiffstats
path: root/scripts/completions/aichat.zsh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-23 23:09:47 +0800
committerGitHub <noreply@github.com>2024-06-23 23:09:47 +0800
commitb3bec3cfb0ab75a5dc30dbd55b91e687a3588410 (patch)
treeb9f551fed02d4696a469af499b5755174041000e /scripts/completions/aichat.zsh
parentf9e7efd41c475519d8f7a01c539d9ee4a3d56208 (diff)
downloadaichat-b3bec3cfb0ab75a5dc30dbd55b91e687a3588410.tar.gz
refactor: cli options and shell completions (#640)
Diffstat (limited to 'scripts/completions/aichat.zsh')
-rw-r--r--scripts/completions/aichat.zsh31
1 files changed, 16 insertions, 15 deletions
diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh
index 6d8dbc1..45da3ca 100644
--- a/scripts/completions/aichat.zsh
+++ b/scripts/completions/aichat.zsh
@@ -14,22 +14,23 @@ _aichat() {
fi
local context curcontext="$curcontext" state line
- local common=(
-'-m+[Select a LLM model]:MODEL:->models' \
-'--prompt=[Use the system prompt]:PROMPT: ' \
-'--model=[Select a LLM model]:MODEL:->models' \
-'-r+[Select a role]:ROLE:->roles' \
-'--role=[Select a role]:ROLE:->roles' \
-'-s+[Start or join a session]:SESSION:->sessions' \
-'--session=[Start or join a session]:SESSION:->sessions' \
+ local common=(
+'-m[Select a LLM model]:MODEL:->models' \
+'--model[Select a LLM model]:MODEL:->models' \
+'--prompt[Use the system prompt]:PROMPT: ' \
+'-r[Select a role]:ROLE:->roles' \
+'--role[Select a role]:ROLE:->roles' \
+'-s[Start or join a session]:SESSION:->sessions' \
+'--session[Start or join a session]:SESSION:->sessions' \
'--save-session[Forces the session to be saved]' \
-'-b+[Start a agent]:BOT:->agents' \
-'--agent=[Start a agent]:BOT:->agents' \
-'--rag=[Start a RAG]:RAG:->rags' \
-'*-f+[Include files with the message]:FILE:_files' \
-'*--file=[Include files with the message]:FILE:_files' \
-'-w+[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \
-'--wrap=[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \
+'-a[Start a agent]:AGENT:->agents' \
+'--agent[Start a agent]:AGENT:->agents' \
+'-R[Start a RAG]:RAG:->rags' \
+'--rag[Start a RAG]:RAG:->rags' \
+'*-f[Include files with the message]:FILE:_files' \
+'*--file[Include files with the message]:FILE:_files' \
+'-w[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \
+'--wrap[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \
'--serve[Serve the LLM API and WebAPP]' \
'-e[Execute commands in natural language]' \
'--execute[Execute commands in natural language]' \