diff --git a/src/cli.rs b/src/cli.rs index 2fe81b8..51bd38b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -39,6 +39,8 @@ pub enum Commands { }, /// Hardware status Status, + /// Install udev rules for rootless operation + InstallRules, } #[derive(Subcommand, Debug)] @@ -95,9 +97,7 @@ pub enum PowerCommands { /// Set power profile to battery saver BatterySave, /// Set CPU TDP limit (in Watts) - LimitTdp { - watts: u32, - }, + LimitTdp { watts: u32 }, } #[derive(Subcommand, Debug)] @@ -113,9 +113,7 @@ pub enum CoolingCommands { #[derive(Subcommand, Debug)] pub enum BatteryCommands { /// Set the battery charging limit (e.g., 80) - Limit { - percent: u8, - }, + Limit { percent: u8 }, /// Show current battery status Status, } diff --git a/src/main.rs b/src/main.rs index 4265ad7..efb37da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,5 +31,6 @@ fn main() { Commands::Power { command } => commands::power::execute(command), Commands::Cooling { command } => commands::cooling::execute(command), Commands::Status => commands::status::execute(), + Commands::InstallRules => commands::install_rules::execute(), } }