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

This commit is contained in:
Dark-Alex-17 committed 2026-05-19 14:29:44 -06:00
1 parent 5a9a00bc6f
commit afa0e4af67
10 files changed
+698 -9

No files matched your search

+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 {