Release Date: 2025-12-29
Previous Version: v0.2.0-alpha.22
This release introduces version checking capabilities to the nanx CLI, allowing users to verify their current version and receive notifications when updates are available. The implementation adds a custom --version flag handler that integrates with the nanx self-update infrastructure.
Features
- Version flag with update availability check: Added a custom
--versionhandler that displays the current nanx version and checks for available updates. When invoked, nanx will query the latest version from the release channel and inform users if a newer version is available, encouraging them to runnanx self update.
NANX_VERSION constant in apps/nanx/main.rs for centralized version management
- Version check logic integrated with existing nanions::nanx::self_cmd module
- Updated command handlers to accept current_version parameter for proper version comparison
- Provides user-friendly output indicating update availability status
Technical Changes
- Version constant consolidation: Introduced
NANX_VERSIONconstant in the main application module to serve as the single source of truth for version information, ensuring consistency across version display and update checks - Self-update command refactoring: Modified
nanions::nanx::self_cmdmodule to accept current version as a parameter, improving modularity and testability of version comparison logic
Statistics
| Metric | Value |
|---|
| Commits | 2 |
|---|---|
| Files Changed | 2 |
| Lines | +42 / -4 |
| Issues Closed | 0 |
Contributors
| Name | Commits | Lines |
|---|
| VivinMeth ([email protected]) | 2 | +42 / -4 |
|---|