Skip to content
Snippets Groups Projects
Commit 5c787d75 authored by nfontrod's avatar nfontrod
Browse files

src/main.rs: add update flag

parent 7a776597
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ struct Commit { ...@@ -35,6 +35,8 @@ struct Commit {
/// The compression used to save the results folder (no, lz4, zstd, zlib or lzma) /// The compression used to save the results folder (no, lz4, zstd, zlib or lzma)
#[clap(short, long, default_value = "lz4")] #[clap(short, long, default_value = "lz4")]
compression: String, compression: String,
#[clap(takes_value = false, short, long)]
update: bool,
} }
#[derive(Debug, Args)] #[derive(Debug, Args)]
...@@ -58,7 +60,7 @@ fn main() { ...@@ -58,7 +60,7 @@ fn main() {
init::init_repository(); init::init_repository();
} }
Commands::Commit(commit) => { Commands::Commit(commit) => {
commit::commit(commit.compression, String::from("")); commit::commit(commit.compression, String::from(""), commit.update);
} }
Commands::List(list) => { Commands::List(list) => {
list::borg_list(list.first, list.last, &list.archive); list::borg_list(list.first, list.last, &list.archive);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment