This repository has been archived on 2023-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
toolkit/crates/github/src/auth.rs
2022-12-18 01:41:12 +01:00

14 lines
275 B
Rust

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"], None)?;
Ok(())
}
}