fix: improve version command UX and consolidate update code#42
Open
fnebenfuehr wants to merge 2 commits intomainfrom
Open
fix: improve version command UX and consolidate update code#42fnebenfuehr wants to merge 2 commits intomainfrom
fnebenfuehr wants to merge 2 commits intomainfrom
Conversation
- Use Commander's native .version() to prevent help text display - Suggest `worktree update` instead of `npm update -g` - Move PackageJson interface to shared lib/types.ts - Rename utils/update-checker.ts to utils/update.ts - Export writeCache and make getVersionInfo update cache 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update test imports from @/utils/update-checker to @/utils/update after module rename in commit 388fc16 - Fix version command to properly show update notifications - Replace invalid outputVersion config with pre-parse argv check - Commander's OutputConfiguration doesn't support outputVersion Tests: 308 pass, 0 fail 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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
.version()to prevent help text from displaying after--versionnpm update -gtoworktree updateutils/update-checker.ts→utils/update.tsPackageJsoninterface to sharedlib/types.tsgetVersionInfo()update cache after fresh fetchTest plan
worktree -vand verify no help text appearsworktree updateworktree updateto test update command still works--version🤖 Generated with Claude Code