-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate g:command:create to TypeScript #6
Copy link
Copy link
Open
Description
Command Migration: g:command:create
Current Implementation
- Main orchestrator:
scripts/g/command/create/create_orchestrate.bash - Sub-scripts:
namespace_validate.bash- Validates command namespace formatfile_create.bash- Creates command file with boilerplatecommand_register.bash- Updates command registrygit_operations.bash- Adds and commits new commandsummary.bash- Displays creation summary
Requirements
- Feature parity with Bash version
- Unit tests with >90% coverage
- Integration tests
- Performance benchmarks
- Documentation
Technical Design
- Use composition pattern with injected services
- NamespaceValidator service for validation
- FileService for file operations
- GitService for git operations
- TemplateEngine for boilerplate generation
Test Cases
- Valid namespace creation
- Invalid namespace rejection
- Namespace correction suggestions
- File already exists handling
- Git operation failures
- Template generation variations
Plan Document
Create: cc-commands-ts/plans/g-command-create.plan.md
Dependencies
- Depends on: [EPIC] TypeScript Migration Foundation #1, [EPIC] Core Services Implementation #2
- Blocks: None
Acceptance Criteria
- Creates command file in correct location
- Validates namespace format
- Generates appropriate boilerplate
- Commits to git (when not skipped)
- Output format matches Bash version
- All error cases handled gracefully
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels