Add CLI input validation and helpers #5

Manually merged
maxp merged 5 commits from feature/add-option-validation into main 2025-05-30 12:47:55 +02:00
Owner
  • Add input validation to CLI options in createCommand
  • Implement validation helpers for CLI arguments in cliValidationHelper.ts
  • Update i18n files with error messages for validation
  • Add unit tests for validation helpers
  • Update build scripts to include run permission for binaries
  • Update lockfile and changelog entries

This change introduces validation for CLI arguments to ensure correct input formats for identifiers, paths, environment variables, and systemd calendar expressions. New helper functions centralize validation logic, providing consistent error handling and messages via i18n. Unit tests cover validation scenarios for robustness. The build process now grants run permissions to compiled binaries. The changelog and dependency lockfile are updated to reflect these changes.

- Add input validation to CLI options in `createCommand` - Implement validation helpers for CLI arguments in `cliValidationHelper.ts` - Update i18n files with error messages for validation - Add unit tests for validation helpers - Update build scripts to include run permission for binaries - Update lockfile and changelog entries This change introduces validation for CLI arguments to ensure correct input formats for identifiers, paths, environment variables, and systemd calendar expressions. New helper functions centralize validation logic, providing consistent error handling and messages via i18n. Unit tests cover validation scenarios for robustness. The build process now grants run permissions to compiled binaries. The changelog and dependency lockfile are updated to reflect these changes.
maxp added 5 commits 2025-05-30 12:44:36 +02:00
- Introduce functions to validate CLI inputs like paths, identifiers, and environment variables
- Add error messages for invalid inputs to support user feedback
- Include unit tests to ensure correctness and robustness of validation logic
chore(lock): update dependencies to latest versions
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 7s
8c5dc166ef
chore(changelog): update unreleased changelog
All checks were successful
CI / build (pull_request) Successful in 14s
dfc2e11ae9
maxp manually merged commit 28b23cf947 into main 2025-05-30 12:47:55 +02:00
maxp deleted branch feature/add-option-validation 2025-05-30 12:47:59 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: maxp/systemd-timer#5
No description provided.