From 1c3e81afe9f63fb47303384a82c7239458166f52 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 13 Apr 2024 19:50:10 +0800 Subject: feat: add completion scripts (#411) --- scripts/completions/aichat.fish | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/completions/aichat.fish (limited to 'scripts/completions/aichat.fish') diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish new file mode 100644 index 0000000..1169cd6 --- /dev/null +++ b/scripts/completions/aichat.fish @@ -0,0 +1,18 @@ +complete -c aichat -s m -l model -x -a "(aichat --list-models)" -d 'Choose a LLM model' -r +complete -c aichat -s r -l role -x -a "(aichat --list-roles)" -d 'Choose a role' -r +complete -c aichat -s s -l session -x -a"(aichat --list-sessions)" -d 'Create or reuse a session' -r +complete -c aichat -s f -l file -d 'Attach files to the message' -r -F +complete -c aichat -s w -l wrap -d 'Specify the text-wrapping mode (no, auto, )' +complete -c aichat -l save-session -d 'Whether to save the session' +complete -c aichat -s e -l execute -d 'Execute commands using natural language' +complete -c aichat -s c -l code -d 'Generate only code' +complete -c aichat -s H -l no-highlight -d 'Disable syntax highlighting' +complete -c aichat -s S -l no-stream -d 'No stream output' +complete -c aichat -l light-theme -d 'Use light theme' +complete -c aichat -l dry-run -d 'Run in dry run mode' +complete -c aichat -l info -d 'Print related information' +complete -c aichat -l list-models -d 'List all available models' +complete -c aichat -l list-roles -d 'List all available roles' +complete -c aichat -l list-sessions -d 'List all available sessions' +complete -c aichat -s h -l help -d 'Print help' +complete -c aichat -s V -l version -d 'Print version' -- cgit v1.2.3