mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-12 09:22:26 -04:00
steamosctl: Remove deprecated get-version
This commit is contained in:
parent
5e828efdfa
commit
db345b3f3d
1 changed files with 2 additions and 10 deletions
|
@ -16,8 +16,8 @@ use steamos_manager::power::{CPUScalingGovernor, GPUPerformanceLevel, GPUPowerPr
|
||||||
use steamos_manager::proxy::{
|
use steamos_manager::proxy::{
|
||||||
AmbientLightSensor1Proxy, CpuScaling1Proxy, FactoryReset1Proxy, FanControl1Proxy,
|
AmbientLightSensor1Proxy, CpuScaling1Proxy, FactoryReset1Proxy, FanControl1Proxy,
|
||||||
GpuPerformanceLevel1Proxy, GpuPowerProfile1Proxy, GpuTdpLimit1Proxy, HdmiCec1Proxy,
|
GpuPerformanceLevel1Proxy, GpuPowerProfile1Proxy, GpuTdpLimit1Proxy, HdmiCec1Proxy,
|
||||||
Manager2Proxy, ManagerProxy, Storage1Proxy, UpdateBios1Proxy, UpdateDock1Proxy,
|
Manager2Proxy, Storage1Proxy, UpdateBios1Proxy, UpdateDock1Proxy, WifiDebug1Proxy,
|
||||||
WifiDebug1Proxy, WifiPowerManagement1Proxy,
|
WifiPowerManagement1Proxy,
|
||||||
};
|
};
|
||||||
use steamos_manager::wifi::{WifiBackend, WifiDebugMode, WifiPowerManagement};
|
use steamos_manager::wifi::{WifiBackend, WifiDebugMode, WifiPowerManagement};
|
||||||
use zbus::fdo::PropertiesProxy;
|
use zbus::fdo::PropertiesProxy;
|
||||||
|
@ -114,9 +114,6 @@ enum Commands {
|
||||||
/// Get the minimum allowed TDP limit
|
/// Get the minimum allowed TDP limit
|
||||||
GetTDPLimitMin,
|
GetTDPLimitMin,
|
||||||
|
|
||||||
/// Get the current API version
|
|
||||||
GetVersion,
|
|
||||||
|
|
||||||
/// Set the wifi backend if possible
|
/// Set the wifi backend if possible
|
||||||
SetWifiBackend {
|
SetWifiBackend {
|
||||||
/// Supported backends are iwd, wpa_supplicant
|
/// Supported backends are iwd, wpa_supplicant
|
||||||
|
@ -177,7 +174,6 @@ async fn main() -> Result<()> {
|
||||||
|
|
||||||
// Then get a connection to the service
|
// Then get a connection to the service
|
||||||
let conn = Connection::session().await?;
|
let conn = Connection::session().await?;
|
||||||
let proxy = ManagerProxy::builder(&conn).build().await?;
|
|
||||||
|
|
||||||
// Then process arguments
|
// Then process arguments
|
||||||
match &args.command {
|
match &args.command {
|
||||||
|
@ -208,10 +204,6 @@ async fn main() -> Result<()> {
|
||||||
let supported = proxy.hardware_currently_supported().await?;
|
let supported = proxy.hardware_currently_supported().await?;
|
||||||
println!("Hardware currently supported: {supported}");
|
println!("Hardware currently supported: {supported}");
|
||||||
}
|
}
|
||||||
Commands::GetVersion => {
|
|
||||||
let version = proxy.version().await?;
|
|
||||||
println!("Version: {version}");
|
|
||||||
}
|
|
||||||
Commands::SetFanControlState { state } => {
|
Commands::SetFanControlState { state } => {
|
||||||
let proxy = FanControl1Proxy::new(&conn).await?;
|
let proxy = FanControl1Proxy::new(&conn).await?;
|
||||||
proxy.set_fan_control_state(*state as u32).await?;
|
proxy.set_fan_control_state(*state as u32).await?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue