add basic github

This commit is contained in:
2022-12-17 23:27:41 +01:00
parent 3300bb1ee1
commit 66105004e0
8 changed files with 123 additions and 2 deletions

13
crates/github/src/auth.rs Normal file
View File

@@ -0,0 +1,13 @@
pub struct Auth;
impl util::Cmd for Auth {
fn cmd() -> eyre::Result<clap::Command> {
Ok(clap::Command::new("auth"))
}
fn exec(_: &clap::ArgMatches) -> eyre::Result<()> {
util::shell::run(&["gh", "auth", "login"])?;
Ok(())
}
}