mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-09 16:10:34 -04:00
Add commands for updatebios|dock, trim devices and factory reset.
This commit is contained in:
parent
1fa25aaa41
commit
716f1d0e4d
1 changed files with 17 additions and 0 deletions
|
@ -97,6 +97,11 @@ enum Commands {
|
|||
},
|
||||
|
||||
GetWifiPowerManagementState {},
|
||||
|
||||
UpdateBios {},
|
||||
UpdateDock {},
|
||||
TrimDevices {},
|
||||
FactoryReset {},
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
@ -213,6 +218,18 @@ async fn main() -> Result<()> {
|
|||
let state = proxy.wifi_power_management_state().await?;
|
||||
println!("Wifi power management state: {state}");
|
||||
}
|
||||
Some(Commands::UpdateBios {}) => {
|
||||
let _ = proxy.update_bios().await?;
|
||||
}
|
||||
Some(Commands::UpdateDock {}) => {
|
||||
let _ = proxy.update_dock().await?;
|
||||
}
|
||||
Some(Commands::FactoryReset {}) => {
|
||||
let _ = proxy.prepare_factory_reset().await?;
|
||||
}
|
||||
Some(Commands::TrimDevices {}) => {
|
||||
let _ = proxy.trim_devices().await?;
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue