use clap::Args; use crate::cli::{ Exit, Command }; /// Replace the root subvolume with a writable copy of a snapshot. #[derive(Debug, Args)] pub struct Rollback { /// The snapshot to restore, as the snapshot provider names it. /// The default is the rollback target. #[arg(value_name = "SNAPSHOT", conflicts_with = "promote")] pub snapshot: Option, /// Restore the snapshot the system is currently booted from. #[arg(long)] pub promote: bool, /// Skip the confirmation prompt. #[arg(long, short = 'y')] pub yes: bool, /// Reboot without asking once the rollback is done. #[arg(long)] pub reboot: bool, /// Wait until pacman releases its database lock, then roll back without asking. /// The post hook starts this in a transient unit after the user has already confirmed. #[arg(long, hide = true, requires = "snapshot")] pub deferred: bool, } impl Command for Rollback { fn run(&self) -> anyhow::Result { todo!("keel rollback") } }