You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
441 B

mod github;
mod gitlab;
use std::env;
extern crate tokio;
fn main() {
let mut args = env::args().skip(1);
let rt = tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.unwrap();
match args.next().expect("Missing service").as_str() {
"github" => rt.block_on(github::run(args)),
"gitlab" => rt.block_on(gitlab::run(args)),
_ => panic!("Unknown service"),
};
}