Skip to content

Commit

Permalink
chore: Small fixes; still panics with no argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mchernicoff committed May 20, 2024
1 parent 64e1d9c commit 0b04af7
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 71 deletions.
96 changes: 48 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions hipcheck/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ pub struct Args {
pub command: Option<Commands>,
}

// impl Default for Args {
// fn default() -> Self {
// command::None
// }
// }

#[derive(Debug, clap::Subcommand)]
pub enum Commands {
/// Analyzes a repository or pull/merge request
Expand All @@ -74,6 +80,12 @@ pub enum Commands {
Schema(SchemaArgs),
}

impl Default for Commands {
fn default() -> Commands {
Commands::Help(HelpArgs { command: None })
}
}

#[derive(Debug, clap::Args)]
pub struct CheckArgs {
/// print help text
Expand Down
Loading

0 comments on commit 0b04af7

Please sign in to comment.