27 lines
947 B
Markdown
27 lines
947 B
Markdown
|
|
# Task ID: 139
|
||
|
|
|
||
|
|
**Title:** CLI shell completions for new resources
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** 138
|
||
|
|
|
||
|
|
**Priority:** low
|
||
|
|
|
||
|
|
**Description:** Update completion generation for new resource names and aliases
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
In scripts/generate-completions.ts:
|
||
|
|
1. Add to CANONICAL_RESOURCES: 'epics', 'epictasks', 'tasks', 'repos', 'sessions'
|
||
|
|
2. Add to ALIAS_ENTRIES: epic→epics, epictask→epictasks, et→epictasks, task→tasks, repo→repos, repository→repos, repositories→repos, session→sessions
|
||
|
|
3. Run pnpm completions:generate to regenerate completion scripts
|
||
|
|
4. Completions are generated, never hand-edited
|
||
|
|
|
||
|
|
In src/cli/tests/completions.test.ts:
|
||
|
|
5. Test assertions already run generator with --check, will fail on drift automatically
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Run completions.test.ts which validates generated completions match source of truth. Manual test: source completions in shell, verify tab-completion works for new resources.
|