feat(completion): optimize ID prefix filtering and add completions to more commands
Improvements to shell completions from PR #935: 1. Add IDPrefix field to IssueFilter for efficient database-level filtering - Queries are now filtered at SQL level instead of fetching all issues - Updated sqlite, transaction, and memory stores to support IDPrefix 2. Add ValidArgsFunction to additional commands: - dep (add, remove, list, tree) - comments, comment (add) - delete - graph - label (add, remove, list) - duplicate, supersede - audit - move - relate, unrelate - refile - gate (show, resolve, add-waiter) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Executed-By: beads/crew/dave Rig: beads Role: crew
This commit is contained in:
committed by
Steve Yegge
parent
025cdac962
commit
5dfb838d60
@@ -1167,6 +1167,12 @@ func init() {
|
||||
depListCmd.Flags().String("direction", "down", "Direction: 'down' (dependencies), 'up' (dependents)")
|
||||
depListCmd.Flags().StringP("type", "t", "", "Filter by dependency type (e.g., tracks, blocks, parent-child)")
|
||||
|
||||
// Issue ID completions for dep subcommands
|
||||
depAddCmd.ValidArgsFunction = issueIDCompletion
|
||||
depRemoveCmd.ValidArgsFunction = issueIDCompletion
|
||||
depListCmd.ValidArgsFunction = issueIDCompletion
|
||||
depTreeCmd.ValidArgsFunction = issueIDCompletion
|
||||
|
||||
depCmd.AddCommand(depAddCmd)
|
||||
depCmd.AddCommand(depRemoveCmd)
|
||||
depCmd.AddCommand(depListCmd)
|
||||
|
||||
Reference in New Issue
Block a user