[WIP] Daemon & CLI
This commit is contained in:
parent
56aad3a023
commit
8b158108bb
100 changed files with 6519 additions and 1596 deletions
21
iota-updater/src/main.rs
Normal file
21
iota-updater/src/main.rs
Normal 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(())
|
||||
}
|
||||
Loading…
Reference in a new issue