Skip to content
Snippets Groups Projects
Commit 2e4edbae authored by nfontrod's avatar nfontrod
Browse files

src/main.rs: update pull fonction

parent cfb9d81f
No related branches found
No related tags found
No related merge requests found
......@@ -339,6 +339,12 @@ struct Push {
struct Pull {
/// The name of the remote to use
key: String,
/// The name of the archive to pull
archive: Option<String>,
/// An option indicating to download all archive not already present
/// in .borg folder
#[clap(short, long, takes_value = false)]
all: bool,
}
#[derive(Debug, Args)]
......@@ -446,9 +452,8 @@ fn main() {
mount::umount_archive(true);
push::push(&p.key, &p.archive, &p.compression);
}
Commands::Pull(_) => {
// pull::pull(&p.key);
eprintln!("function disabled");
Commands::Pull(p) => {
pull::pull(&p.key, &p.archive, p.all);
}
Commands::Clean => {
clean::clean();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment