new subcommand: backup list

- todo: fancy print
This commit is contained in:
qwjyh 2024-03-15 04:16:57 +09:00
parent d947dd35e0
commit ff32996360
6 changed files with 221 additions and 11 deletions

View file

@ -154,7 +154,17 @@ pub(crate) enum BackupSubCommands {
cmd: BackupAddCommands,
},
/// Print configured backups.
List {},
/// Filter by src/dest storage or device.
List {
#[arg(long)]
src: Option<String>,
#[arg(long)]
dest: Option<String>,
#[arg(long)]
device: Option<String>,
#[arg(short, long)]
long: bool,
},
/// Record xdbm that the backup with the name has finished right now.
Done {
/// Name of the backup config.