Add commands for updatebios|dock, trim devices and factory reset.

This commit is contained in:
Jeremy Whiting 2024-05-02 15:42:55 -06:00
parent 1fa25aaa41
commit 716f1d0e4d

View file

@ -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 => {}
}