add basic github
This commit is contained in:
13
crates/github/src/auth.rs
Normal file
13
crates/github/src/auth.rs
Normal 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(())
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user