diff --git a/src/bin/steamosctl.rs b/src/bin/steamosctl.rs index ac60e4b..5c6975e 100644 --- a/src/bin/steamosctl.rs +++ b/src/bin/steamosctl.rs @@ -184,6 +184,9 @@ enum Commands { /// Get the recommended minimum for a charge level limit SuggestedMinimumChargeLimit, + + /// Reload the configuration from disk + ReloadConfig, } async fn get_all_properties(conn: &Connection) -> Result<()> { @@ -463,6 +466,10 @@ async fn main() -> Result<()> { let limit = proxy.suggested_minimum_limit().await?; println!("Suggested minimum charge limit: {limit}"); } + Commands::ReloadConfig => { + let proxy = Manager2Proxy::new(&conn).await?; + proxy.reload_config().await?; + } } Ok(())