diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-13 19:50:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 19:50:10 +0800 |
| commit | 1c3e81afe9f63fb47303384a82c7239458166f52 (patch) | |
| tree | 85d89be89fe9347cf4e8b8cbf30993e5d85c38f8 /scripts/completions/aichat.fish | |
| parent | 568e9a06db7189a28f9346802356b3fd4bdf921b (diff) | |
| download | aichat-1c3e81afe9f63fb47303384a82c7239458166f52.tar.gz | |
feat: add completion scripts (#411)
Diffstat (limited to 'scripts/completions/aichat.fish')
| -rw-r--r-- | scripts/completions/aichat.fish | 18 |
1 files changed, 18 insertions, 0 deletions
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, <max-width>)' +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' |
