From 5ae3d1974b75e55cd8b69fe453ba7f0f0d3777d0 Mon Sep 17 00:00:00 2001 From: Dylan Turner Date: Mon, 6 Mar 2023 11:27:10 -0600 Subject: [PATCH] args.rs: add arguments for backup/restore Backup can happen before any command via a tag Restore is a specific command Signed-off-by: Dylan Turner --- src/args.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index 9f579f4..4a004ec 100644 --- a/src/args.rs +++ b/src/args.rs @@ -15,6 +15,10 @@ pub struct Args { #[arg(short, long)] pub ask: bool, + /// Create a backup of ~/Applications that can be restored from + #[arg(short, long)] + pub backup: bool, + /// One of the commands: install , remove , upgrade, etc. #[command(subcommand)] pub command: Commands @@ -47,6 +51,9 @@ pub enum Commands { /// Arguments to pass to the application. app_args: Option> - } + }, + + /// Restore ~/Applications from backup + Restore }