diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-28 07:05:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 07:05:21 +0800 |
| commit | 3441630c6223ebbab55d62c969390edf865d3d34 (patch) | |
| tree | a535c9a01528f70362047ffc682143509e01d3b4 /scripts | |
| parent | 0e740d81e94505bd57036755abaaecb12c3b26e3 (diff) | |
| download | aichat-3441630c6223ebbab55d62c969390edf865d3d34.tar.gz | |
feat: abandon cli options --wrap, --no-highlight and --light-theme (#758)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/completions/aichat.bash | 6 | ||||
| -rw-r--r-- | scripts/completions/aichat.fish | 3 | ||||
| -rw-r--r-- | scripts/completions/aichat.nu | 3 | ||||
| -rw-r--r-- | scripts/completions/aichat.ps1 | 5 | ||||
| -rw-r--r-- | scripts/completions/aichat.zsh | 5 |
5 files changed, 1 insertions, 21 deletions
diff --git a/scripts/completions/aichat.bash b/scripts/completions/aichat.bash index a4ac09e..80660dc 100644 --- a/scripts/completions/aichat.bash +++ b/scripts/completions/aichat.bash @@ -19,7 +19,7 @@ _aichat() { case "${cmd}" in aichat) - opts="-m -r -s -a -R -e -c -f -S -w -H -h -V --model --prompt --role --session --save-session --agent --rag --serve --execute --code --file --no-stream --wrap --no-highlight --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 -S -h -V --model --prompt --role --session --save-session --agent --rag --serve --execute --code --file --no-stream --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 @@ -84,10 +84,6 @@ _aichat() { fi return 0 ;; - -w|--wrap) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; *) COMPREPLY=() ;; diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish index 2bd8cba..90c17f0 100644 --- a/scripts/completions/aichat.fish +++ b/scripts/completions/aichat.fish @@ -10,9 +10,6 @@ complete -c aichat -s e -l execute -d 'Execute commands in natural language' complete -c aichat -s c -l code -d 'Output code only' complete -c aichat -s f -l file -d 'Include files with the message' -r -F complete -c aichat -s S -l no-stream -d 'Turn off stream mode' -complete -c aichat -s w -l wrap -d 'Control text wrapping (no, auto, <max-width>)' -complete -c aichat -s H -l no-highlight -d 'Turn off syntax highlighting' -complete -c aichat -l light-theme -d 'Use light theme' complete -c aichat -l dry-run -d 'Display the message without sending it' complete -c aichat -l info -d 'Display information' complete -c aichat -l list-models -d 'List all available chat models' diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu index 6c370aa..dcd7043 100644 --- a/scripts/completions/aichat.nu +++ b/scripts/completions/aichat.nu @@ -48,9 +48,6 @@ module completions { --code(-c) # Output code only --file(-f): string # Include files with the message --no-stream(-S) # Turn off stream mode - --wrap(-w): string # Control text wrapping (no, auto, <max-width>) - --no-highlight(-H) # Turn off syntax highlighting - --light-theme # Use light theme --dry-run # Display the message without sending it --info # Display information --list-models # List all available chat models diff --git a/scripts/completions/aichat.ps1 b/scripts/completions/aichat.ps1 index 37fe5e1..2f30bd1 100644 --- a/scripts/completions/aichat.ps1 +++ b/scripts/completions/aichat.ps1 @@ -41,11 +41,6 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock { [CompletionResult]::new('--file', '--file', [CompletionResultType]::ParameterName, 'Include files with the message') [CompletionResult]::new('-S', '-S', [CompletionResultType]::ParameterName, 'Turn off stream mode') [CompletionResult]::new('--no-stream', '--no-stream', [CompletionResultType]::ParameterName, 'Turn off stream mode') - [CompletionResult]::new('-w', '-w', [CompletionResultType]::ParameterName, 'Control text wrapping (no, auto, <max-width>)') - [CompletionResult]::new('--wrap', '--wrap', [CompletionResultType]::ParameterName, 'Control text wrapping (no, auto, <max-width>)') - [CompletionResult]::new('-H', '-H', [CompletionResultType]::ParameterName, 'Turn off syntax highlighting') - [CompletionResult]::new('--no-highlight', '--no-highlight', [CompletionResultType]::ParameterName, 'Turn off syntax highlighting') - [CompletionResult]::new('--light-theme', '--light-theme', [CompletionResultType]::ParameterName, 'Use light theme') [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Display the message without sending it') [CompletionResult]::new('--info', '--info', [CompletionResultType]::ParameterName, 'Display information') [CompletionResult]::new('--list-models', '--list-models', [CompletionResultType]::ParameterName, 'List all available chat models') diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh index b311f6a..62434a4 100644 --- a/scripts/completions/aichat.zsh +++ b/scripts/completions/aichat.zsh @@ -36,11 +36,6 @@ _aichat() { '*--file[Include files with the message]:FILE:_files' \ '-S[Turn off stream mode]' \ '--no-stream[Turn off stream mode]' \ -'-w[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \ -'--wrap[Control text wrapping (no, auto, <max-width>)]:WRAP: ' \ -'-H[Turn off syntax highlighting]' \ -'--no-highlight[Turn off syntax highlighting]' \ -'--light-theme[Use light theme]' \ '--dry-run[Display the message without sending it]' \ '--info[Display information]' \ '--list-models[List all available chat models]' \ |
