diff --git a/src/main.rs b/src/main.rs index e2ce19763916c170b579a98ca4ea7e76f6f1110c..8e4b1687f1f8e96250a46d2b2f68ae8c7da18a42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use crate::delete::Delete; +use crate::prune::Prune; use clap::{Args, Parser, Subcommand}; mod checkout; mod commit; @@ -8,6 +9,7 @@ mod diff; mod init; mod list; mod mount; +mod prune; #[derive(Debug, Parser)] #[clap(name = "gbl")] @@ -58,10 +60,21 @@ enum Commands { Mount(Mount), /// Unmount everything in the folder .mount Umount, - /// This command delete an archive from the repository or the complete repository + /// This command deletes an archive from the repository or the complete repository /// /// This is basically a wrapper of the borg delete command + /// + /// You can visit: + /// https://borgbackup.readthedocs.io/en/stable/usage/delete.html for more details Delete(Delete), + /// This command prunes the .borg repository. This can be used to keep only + /// archive created during a given time interval + /// + /// This is basically a wrapper of the borg prune command + /// + /// You can visit: + /// https://borgbackup.readthedocs.io/en/stable/usage/prune.html for more details + Prune(Prune), } #[derive(Debug, Args)] @@ -237,5 +250,8 @@ fn main() { Commands::Delete(my_delete) => { delete::deletion_launcher(my_delete); } + Commands::Prune(my_prune) => { + prune::prune_launcher(my_prune); + } } }