From cb112711b3b01fe79121fdf6a7fe533014a27cd7 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 5 Feb 2025 18:08:02 -0800 Subject: [PATCH] steamosctl: Add reload-config command --- src/bin/steamosctl.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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(())