feat: Loki can now update itself via .update and --update commands

This commit is contained in:
2026-05-19 14:29:44 -06:00
parent 5a9a00bc6f
commit afa0e4af67
10 changed files with 698 additions and 9 deletions
+7
View File
@@ -83,6 +83,13 @@ async fn main() -> Result<()> {
let log_path = setup_logger()?;
if let Some(version) = &cli.update {
let version = version.clone();
let force = cli.force;
return tokio::task::spawn_blocking(move || config::run_self_update(version, force))
.await?;
}
install_builtins()?;
if let Some(client_arg) = &cli.authenticate {