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

14 lines
275 B
Rust
Raw Normal View History

2022-12-17 23:27:41 +01:00
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<()> {
2022-12-18 01:41:12 +01:00
util::shell::run(&["gh", "auth", "login"], None)?;
2022-12-17 23:27:41 +01:00
Ok(())
}
}