Select Git revision
main.rs 599 B
use clap::{Parser, Subcommand};
mod init;
#[derive(Debug, Parser)]
#[clap(name = "gbl")]
/// A tool used to link borg and git together
///
/// This tool was created to link borg and git together and ease the management of developpment artifact versionning using git
struct Cli {
#[clap(subcommand)]
commands: Commands,
}
#[derive(Debug, Subcommand)]
enum Commands {
/// Initialize a borg repository inside a git project
Init,
}
fn main() {
let args = Cli::parse();
match args.commands {
Commands::Init => {
init::init_repository();
}
}
}