1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use anyhow::Result; use clap::Args; use crate::distribution; /// Restore the installation #[derive(Args, Debug)] #[command()] pub struct Cli {} impl Cli { pub fn exec(self) -> Result<()> { super::remove::Cli {}.exec()?; distribution::ensure_ready()?; Ok(()) } }