-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add version flag support and improve welcome messages displayed after installation and when running the CLI without arguments.
Features
1. Version Flag Support
j -v- Display current version numberj --version- Display current version number
2. Welcome Message Improvements
- Show version number in welcome messages
- Display formatted welcome message after
npm install - Improve first-run user experience
Implementation Details
Files Modified
-
index.js- Added version flag handling (
-v,--version) - Created
showWelcomeMessage()function for consistent welcome display - Updated help and empty command displays to include version info
- Added version flag handling (
-
scripts/postinstall.js- Added
showWelcome()function with formatted ASCII box - Display welcome message at start of postinstall process
- Improved visual presentation of getting started instructions
- Added
Benefits
- Users can quickly check installed version (
j -v) - Better onboarding experience with clear welcome messages
- Consistent messaging across different entry points
- Version visibility without requiring
--helpflag
Acceptance Criteria
-
j -vdisplays version number only -
j --versiondisplays version number only - Welcome message shown after
npm install - Welcome message includes version information
- All commands work without errors
Related
Improves user experience and follows CLI best practices for version display.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request