gitbackup 0.2.6

Backup all your git repositories with a single command
use crate::types::Commands;
use clap::Parser;

mod actions;
mod helpers;
mod providers;
mod types;

fn main() {
    let res = match Commands::parse() {
        Commands::Init => actions::init(),
        Commands::Config => actions::config(),
        Commands::Run => actions::run(),
    };

    if let Err(e) = res {
        eprintln!("{e:?}");
        std::process::exit(1);
    }
}