feat: Implement Go CLI (gwtm) for improved usability #12
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
This PR implements the binary rename from
git-worktree-managertogwtmfor the Go CLI implementation, significantly improving user experience by reducing typing friction from 20 characters to 4.Key Changes
git-worktree-managertogwtmacross all build configurationsBreaking Change⚠️
The Go CLI binary name has changed. Users with hardcoded paths will need to either:
gwtminstead ofgit-worktree-manager, ORln -s $(which gwtm) /usr/local/bin/git-worktree-managerNote: The Bash script (
git-worktree-manager.sh) is completely unaffected.Migration Guide
A comprehensive migration guide has been added to README.md (lines 92-111) with:
Files Modified
Build Configuration:
Makefile- Binary output name changed togwtm.goreleaser.yml- Release configuration for multi-platform buildsgo.mod,go.sum- Go module dependenciesCI/CD:
.github/workflows/test.yml- Updated test commands to use./gwtm.github/workflows/release.yml- GoReleaser integration for automated releasesDocumentation:
README.md- Updated all examples, installation URLs, and added migration guideCLAUDE.md- Updated with Go CLI build instructions.specify/memory/constitution.md- Documented multi-implementation strategyImplementation:
cmd/git-worktree-manager/main.go- CLI entry pointinternal/commands/- All CLI commands (setup, new-branch, remove, list, prune, version, upgrade)internal/git/- Git operations (client, branch, worktree, remote, config)internal/ui/- User interface utilities (output, prompts, errors)internal/version/- Semantic versioning and upgrade logicinternal/config/- Environment and path configurationFeature Specs:
specs/002-go-cli-redesign/- Complete feature documentation (spec, plan, research, tasks, contracts, quickstart)Test Plan
Build Verification
make buildsuccessfully createsgwtmbinarySmoke Tests
./gwtm --helpdisplays help without errors./gwtm versionshows version information./gwtm --dry-run setup test-org/test-repoexecutes successfullyTest Suite
CI/CD
Documentation
gwtmImpact Analysis
Users
Bash Script Users
Build/Release
gwtm_Linux_x86_64)CI/CD
Release Notes Preview
Implementation Workflow
This PR was implemented following the spec-kit workflow:
All tasks completed successfully with full validation.
🤖 Generated with Claude Code