Skip to content
Snippets Groups Projects
Commit 02da7fe6 authored by nfontrod's avatar nfontrod
Browse files

src/main.rs: update the clone subcommand

parent b9a9e1cb
Branches
Tags v0.2.8
No related merge requests found
...@@ -122,12 +122,6 @@ enum Commands { ...@@ -122,12 +122,6 @@ enum Commands {
Pull(Pull), Pull(Pull),
/// This command cleans the .tmp repository of the project folder /// This command cleans the .tmp repository of the project folder
Clean, Clean,
/// This command moves the borg folder .tmp/<PROJECT_DIR>_bkp folder into
/// .borg repository
///
/// The purpose of this command is to be used if a pull command fails after
/// removing content inside the .borg folder
Restore,
/// Clones a repository given a destination /// Clones a repository given a destination
Clone(Clone), Clone(Clone),
} }
...@@ -458,13 +452,8 @@ fn main() { ...@@ -458,13 +452,8 @@ fn main() {
Commands::Clean => { Commands::Clean => {
clean::clean(); clean::clean();
} }
Commands::Restore => { Commands::Clone(c) => {
// restore::restore(); clone::clone(&c.path, c.hooks, &c.compression, &c.mode);
eprintln!("function disabled");
}
Commands::Clone(_) => {
// clone::clone(&c.path, c.hooks, &c.compression, &c.mode);
eprintln!("function disabled");
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment