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.zsh | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'scripts/completions/aichat.zsh') 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, )]:WRAP: ' \ -'--wrap=[Control text wrapping (no, auto, )]: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, )]:WRAP: ' \ +'--wrap[Control text wrapping (no, auto, )]:WRAP: ' \ '--serve[Serve the LLM API and WebAPP]' \ '-e[Execute commands in natural language]' \ '--execute[Execute commands in natural language]' \ -- cgit v1.2.3