diff --git a/src/main.rs b/src/main.rs index f82057a99d6dcf4a90ffdeb9d9e658fcc59dc514..04b0658e9180731881ed882a4fba9d620ea33f05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,12 +122,6 @@ enum Commands { Pull(Pull), /// This command cleans the .tmp repository of the project folder 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 Clone(Clone), } @@ -458,13 +452,8 @@ fn main() { Commands::Clean => { clean::clean(); } - Commands::Restore => { - // restore::restore(); - eprintln!("function disabled"); - } - Commands::Clone(_) => { - // clone::clone(&c.path, c.hooks, &c.compression, &c.mode); - eprintln!("function disabled"); + Commands::Clone(c) => { + clone::clone(&c.path, c.hooks, &c.compression, &c.mode); } } }