Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
args.rs: add arguments for backup/restore
Browse files Browse the repository at this point in the history
Backup can happen before any command via a tag
Restore is a specific command

Signed-off-by: Dylan Turner <[email protected]>
  • Loading branch information
blueOkiris committed Mar 6, 2023
1 parent 34cc737 commit 5ae3d19
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <pkg>, remove <pkg>, upgrade, etc.
#[command(subcommand)]
pub command: Commands
Expand Down Expand Up @@ -47,6 +51,9 @@ pub enum Commands {

/// Arguments to pass to the application.
app_args: Option<Vec<String>>
}
},

/// Restore ~/Applications from backup
Restore
}

0 comments on commit 5ae3d19

Please sign in to comment.