The refactor extracts argument construction into a reusable build_args function and adds unit tests, improving modularity and test coverage.
New Features
- Introduce build_args helper to construct inhibit command arguments.
- Add comprehensive unit tests for both empty and non‑empty argument scenarios.
Enhancements
- Refactor existing argument handling to use build_args, eliminating duplicated logic.
- Improve readability and maintainability of the inhibit command implementation.
Bug Fixes
- None
This command prevents system sleep while optionally executing a user‑provided command, offering both foreground and background inhibition modes.
- New Features
- Implemented inhibit.rs with logic to invoke systemd-inhibit.
- Exposed inhibit functionality by adding pub mod inhibit; to src/commands/mod.rs.
- Enhancements
- (none)
- Bug Fixes
- (none)