feat(src): add inhibit command to prevent system sleep

The new inhibit subcommand lets users block suspend/sleep while optionally running a command, specifying why and who, and running in daemon mode.

- New Features
  - Introduce Inhibit subcommand with command, why, who, and daemon options
- Enhancements
  - Extend CLI parsing to support additional arguments
  - Enable background inhibition via daemon flag for continuous prevention
This commit is contained in:
sankalp committed 2026-03-12 19:00:26 +05:45
1 parent 2b2962f7f0
commit 8095b50ac5
2 files changed
+20

No files matched your search

+6
View File
@@ -28,5 +28,11 @@ fn main() {
Commands::Cooling { command } => commands::cooling::execute(command),
Commands::Status => commands::status::execute(),
Commands::InstallRules => commands::install_rules::execute(),
Commands::Inhibit {
command,
why,
who,
daemon,
} => commands::inhibit::execute(command, why, who, *daemon),
}
}