Skip to content
Snippets Groups Projects
Verified Commit 09d69a37 authored by nfontrod's avatar nfontrod
Browse files

src/main.rs: add a push command

parent b0c8684a
Branches
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ use configt::PartialPrune;
mod checkout;
mod commit;
mod compact;
mod compress;
mod config_structure;
mod configt;
mod create_hooks;
......@@ -100,6 +101,9 @@ enum Commands {
/// This command can be used to add a new remote for push and pull commands
#[clap(subcommand)]
Remote(Remote),
/// This command can be used to push a repository using a remote
/// #[clap(subcommand)]
Push(Push),
}
#[derive(Debug, Args)]
......@@ -294,6 +298,12 @@ struct RemoteRm {
global: bool,
}
#[derive(Debug, Args)]
struct Push {
/// The name of the remote to use
key: String,
}
fn main() {
let args = Cli::parse();
......@@ -374,5 +384,8 @@ fn main() {
}
Remote::Rm(e) => remote::remove_config(&e.key, e.global),
},
Commands::Push(p) => {
compress::push(&p.key);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment