refactor: rename add command to register (backward compatible)#18
Merged
andhijeannot merged 2 commits intomainfrom Oct 22, 2025
Merged
refactor: rename add command to register (backward compatible)#18andhijeannot merged 2 commits intomainfrom
andhijeannot merged 2 commits intomainfrom
Conversation
1e0b6d4 to
be06fa5
Compare
- Renamed 'ason add' to 'ason register' for better semantic clarity - Added 'add' as an alias for backward compatibility - Updated all code references (registerCmd, registerDescription, etc.) - Updated all documentation to use 'register' as primary command - Renamed docs/commands/add.md to docs/commands/register.md - Updated all cross-references in documentation - All tests updated and passing - Constitution compliant: no new dependencies, tests maintained, docs updated Closes #1-rename-add-to-register
be06fa5 to
3c61ec4
Compare
…acOS - Reorganized installation section by platform (macOS, Linux, Windows) - Highlighted Homebrew as recommended method for macOS - Clarified package manager options for Linux distributions - Improved Quick Start section with practical examples - Updated commands to use 'register' instead of 'add'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames the
ason addcommand toason registerfor better semantic clarity while maintaining full backward compatibility through a command alias.Changes
Code Updates
addCmd→registerCmdwithaddalias for backward compatibilityaddDescription→registerDescription, etc.runAdd()→runRegister()Test Updates
TestRegisterCmdAliasWorksto verify backward compatibilityDocumentation Updates
docs/commands/add.md→docs/commands/register.mdason addtoason registeracross 11 filesCHANGELOG.mdwith proper entryBackward Compatibility
The
addcommand still works via Cobra's alias mechanism:ason add my-template /path→ works identically toason registerason add --help→ shows register command helpTesting
Constitution Compliance
Files Changed
Code (6 files):
cmd/commands.go,cmd/commands_test.gocmd/completion.go,cmd/completion_test.gocmd/root.go,cmd/root_test.goDocumentation (10+ files):
docs/commands/add.md→docs/commands/register.mdCHANGELOG.mdWhy This Change?
The term "register" better describes the action of adding a template to the local registry, improving semantic clarity for new users while maintaining existing workflows for current users.
Related
specs/001-rename-add-to-register/spec.mdspecs/001-rename-add-to-register/plan.mdspecs/001-rename-add-to-register/tasks.md(87/87 completed ✅)