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:
2 files changed
+20
No files matched your search
@@ -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),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user