From 716f1d0e4d41ac07b8b79a579417da831398b9c3 Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Thu, 2 May 2024 15:42:55 -0600 Subject: [PATCH] Add commands for updatebios|dock, trim devices and factory reset. --- src/bin/steamosctl.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/bin/steamosctl.rs b/src/bin/steamosctl.rs index 171ae82..2c75845 100644 --- a/src/bin/steamosctl.rs +++ b/src/bin/steamosctl.rs @@ -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 => {} }