romm-cli 0.32.0

Rust-based CLI and TUI for the ROMM API
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::core::interrupt::InterruptContext;
use crate::update;
use anyhow::Result;

/// Handle the `update` command.
pub async fn handle(interrupt: Option<InterruptContext>) -> Result<()> {
    let version = update::apply_update(interrupt, true).await?;
    println!("Update status: `{}`!", version);
    Ok(())
}