Commit 01c5dba
feat: add shell completion for analyze command types (#321)
## Summary
- Adds a `ValidArgsFunction` to the `analyze` cobra command so that
tab-completing the first positional argument suggests the 7 available
analyzer types (`test-fixtures`, `duplication`, `refactor`,
`complexity`, `api-design`, `dead-code`, `architecture`) with their
descriptions
- After the analyzer type is selected, completion falls back to default
file path completion
## Test plan
- [ ] Run `roborev analyze <TAB>` and verify all 7 analyzer types appear
with descriptions
- [ ] Run `roborev analyze refactor <TAB>` and verify file path
completion works
- [ ] Verify `go build ./...` passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9a7c3ff commit 01c5dba
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
0 commit comments