diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-06 08:18:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-06 08:18:33 +0800 |
| commit | ec469cff3ba23b6035aebc74fa7de7b82e678a56 (patch) | |
| tree | c7f730a64246a6fd327f4851f178b659cf1710d9 /scripts | |
| parent | bb648d68845e0755edb03570237039433a752463 (diff) | |
| download | aichat-ec469cff3ba23b6035aebc74fa7de7b82e678a56.tar.gz | |
feat: `.file` supports external command execution (#1075)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/completions/aichat.fish | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.nu | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.ps1 | 4 | ||||
| -rw-r--r-- | scripts/completions/aichat.zsh | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish index 148af82..19446f8 100644 --- a/scripts/completions/aichat.fish +++ b/scripts/completions/aichat.fish @@ -11,7 +11,7 @@ complete -c aichat -l rebuild-rag -d 'Rebuild the RAG to sync document changes' complete -c aichat -l serve -d 'Serve the LLM API and WebAPP' 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 f -l file -d 'Include files, directories, or URLs' -r -F complete -c aichat -s S -l no-stream -d 'Turn off stream mode' complete -c aichat -l dry-run -d 'Display the message without sending it' complete -c aichat -l info -d 'Display information' diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu index 748ffc1..ca41518 100644 --- a/scripts/completions/aichat.nu +++ b/scripts/completions/aichat.nu @@ -49,7 +49,7 @@ module completions { --serve # Serve the LLM API and WebAPP --execute(-e) # Execute commands in natural language --code(-c) # Output code only - --file(-f): string # Include files with the message + --file(-f): string # Include files, directories, or URLs --no-stream(-S) # Turn off stream mode --dry-run # Display the message without sending it --info # Display information diff --git a/scripts/completions/aichat.ps1 b/scripts/completions/aichat.ps1 index 30c8c79..8827351 100644 --- a/scripts/completions/aichat.ps1 +++ b/scripts/completions/aichat.ps1 @@ -39,8 +39,8 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock { [CompletionResult]::new('--execute', '--execute', [CompletionResultType]::ParameterName, 'Execute commands in natural language') [CompletionResult]::new('-c', '-c', [CompletionResultType]::ParameterName, 'Output code only') [CompletionResult]::new('--code', '--code', [CompletionResultType]::ParameterName, 'Output code only') - [CompletionResult]::new('-f', '-f', [CompletionResultType]::ParameterName, 'Include files with the message') - [CompletionResult]::new('--file', '--file', [CompletionResultType]::ParameterName, 'Include files with the message') + [CompletionResult]::new('-f', '-f', [CompletionResultType]::ParameterName, 'Include files, directories, or URLs') + [CompletionResult]::new('--file', '--file', [CompletionResultType]::ParameterName, 'Include files, directories, or URLs') [CompletionResult]::new('-S', '-S', [CompletionResultType]::ParameterName, 'Turn off stream mode') [CompletionResult]::new('--no-stream', '--no-stream', [CompletionResultType]::ParameterName, 'Turn off stream mode') [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Display the message without sending it') diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh index 11da4e7..bb6fcda 100644 --- a/scripts/completions/aichat.zsh +++ b/scripts/completions/aichat.zsh @@ -34,8 +34,8 @@ _aichat() { '--execute[Execute commands in natural language]' \ '-c[Output code only]' \ '--code[Output code only]' \ -'*-f[Include files with the message]:FILE:_files' \ -'*--file[Include files with the message]:FILE:_files' \ +'*-f[Include files, directories, or URLs]:FILE:_files' \ +'*--file[Include files, directories, or URLs]:FILE:_files' \ '-S[Turn off stream mode]' \ '--no-stream[Turn off stream mode]' \ '--dry-run[Display the message without sending it]' \ |
