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:
sankalp committed 2026-05-29 16:35:26 +05:45
1 parent 92806e2843
commit 8faccc117a
2 files changed
+8

No files matched your search

+6
View File
@@ -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)]
+2
View File
@@ -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 => {