mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-08 15:40:34 -04:00
steamosctl: Add reload-config command
This commit is contained in:
parent
406704ab6b
commit
cb112711b3
1 changed files with 7 additions and 0 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue