feat(claudecode): update completion actions and clean up README

- Added new actions for `claude-quick` including 'optimize', 'refactor', 'test', and 'docs'.
- Removed redundant code from the `_claude_quick` function to streamline the completion process.
- Cleaned up the README by removing outdated usage examples for `claude-quick` to reflect the latest features.
This commit is contained in:
ClearClown 2025-06-15 17:37:35 +09:00
commit 6e2c0e721e
2 changed files with 4 additions and 232 deletions

View file

@ -123,7 +123,6 @@ _claude_tools() {
_describe 'tools' tools
}
_claude "$@"
EOF
# Save current version to cache
@ -241,6 +240,10 @@ _claude_quick() {
'debug:Debug the given code or error'
'review:Review the given code'
'fix:Fix the given issue'
'optimize:Optimize the given code'
'refactor:Refactor the given code'
'test:Write tests for the given code'
'docs:Write documentation for the given code'
)
_describe 'actions' actions
@ -441,23 +444,6 @@ _claude_pipe_enhanced() {
_describe 'input formats' formats
}
# Update claude-quick completion
_claude_quick() {
local -a actions
actions=(
'explain:Explain the given content'
'debug:Debug the given code or error'
'review:Review the given code'
'fix:Fix the given issue'
'optimize:Optimize the given code'
'refactor:Refactor the given code'
'test:Write tests for the given code'
'docs:Write documentation for the given code'
)
_describe 'actions' actions
}
compdef _claude_quick claude-quick
compdef _claude_git claude-git
compdef _claude_project claude-project