ghtool 0.1.0

A command-line tool for interacting with Github API with some specialized features oriented around Checks
use clap::{Parser, Subcommand};

#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
#[command(arg_required_else_help = true)]
#[command(color = clap::ColorChoice::Never)]
pub struct Cli {
    #[command(subcommand)]
    pub command: Option<Commands>,
}

#[derive(Subcommand)]
pub enum Commands {
    /// Get the failing tests for the current branch's pull request's checks
    FailingTests {
        /// Output only the path to failing test file
        #[clap(long, short)]
        files: bool,
    },
}