feat(src): add temperature, fan, power commands handling
- New Features - Added `temperature` subcommand to display system temperatures. - Added `fan` subcommand to display fan speeds. - Added `power` subcommand under GPU commands to show GPU power state and consumption. - Enhancements - Integrated new subcommands into the command dispatcher. - Bug Fixes - None
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -44,6 +44,10 @@ pub enum Commands {
|
||||
},
|
||||
/// Hardware status
|
||||
Status,
|
||||
/// Show system temperatures
|
||||
Temperature,
|
||||
/// Show fan speeds
|
||||
Fan,
|
||||
/// Install udev rules for rootless operation
|
||||
InstallRules,
|
||||
/// Touchpad management
|
||||
@@ -114,6 +118,8 @@ pub enum GpuCommands {
|
||||
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
||||
command: Vec<String>,
|
||||
},
|
||||
/// Show GPU power state and consumption
|
||||
Power,
|
||||
}
|
||||
|
||||
#[derive(Subcommand, Debug)]
|
||||
|
||||
@@ -28,6 +28,8 @@ fn main() {
|
||||
Commands::Cooling { command } => commands::cooling::execute(command),
|
||||
Commands::Display { command } => commands::display::execute(command),
|
||||
Commands::Status => commands::status::execute(),
|
||||
Commands::Temperature => commands::temperature::execute(),
|
||||
Commands::Fan => commands::fan::execute(),
|
||||
Commands::InstallRules => commands::install_rules::execute(),
|
||||
Commands::Touchpad { command } => commands::touchpad::execute(command),
|
||||
Commands::Daemon => {
|
||||
|
||||
Reference in new issue
Block a user