[WIP] Daemon & CLI

This commit is contained in:
Alex-Emmet 2026-07-23 23:13:02 +02:00
commit 8b158108bb
100 changed files with 6519 additions and 1596 deletions

21
iota-updater/src/main.rs Normal file
View file

@ -0,0 +1,21 @@
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
let command = std::env::args().nth(1).unwrap_or_else(|| "status".into());
match command.as_str() {
"check" => println!("update check is manifest-driven"),
"status" => println!("updater ready"),
"apply" | "rollback" => {
return Err(anyhow::anyhow!(
"explicit signed transaction input is required"
));
}
_ => {
return Err(anyhow::anyhow!(
"usage: iota-updater check|status|apply|rollback"
));
}
}
Ok(())
}