feat(cli): Refactor CLI commands to use dedicated handlers for UPS, group, and service management

This commit is contained in:
2025-03-28 22:12:01 +00:00
parent ac4b2c95f3
commit 9969e0f703
7 changed files with 1992 additions and 1969 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## 2025-03-28 - 3.1.0 - feat(cli)
Refactor CLI commands to use dedicated handlers for UPS, group, and service management
- Extracted UPS-related CLI logic into a new UpsHandler
- Introduced GroupHandler to manage UPS groups commands
- Added ServiceHandler for systemd service operations
- Updated CLI routing in cli.ts to delegate commands to the new handlers
- Exposed getters for the new handlers in the Nupst class
## 2025-03-28 - 3.0.1 - fix(cli)
Simplify UPS ID generation by removing the redundant promptForUniqueUpsId function in the CLI module and replacing it with the shortId helper.