From 3935225fb06edd633664c4d9abad07526ab2419f Mon Sep 17 00:00:00 2001 From: Amanjeev Sethi Date: Tue, 28 Jan 2025 19:36:46 -0500 Subject: [PATCH] Improve naming consistency --- crates/criticalup-cli/src/lib.rs | 4 ++-- .../tests/snapshots/cli__which__help_message.snap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/criticalup-cli/src/lib.rs b/crates/criticalup-cli/src/lib.rs index 3751a4c7..cf41be4f 100644 --- a/crates/criticalup-cli/src/lib.rs +++ b/crates/criticalup-cli/src/lib.rs @@ -71,7 +71,7 @@ async fn main_inner(whitelabel: WhitelabelConfig, args: &[OsString]) -> Result<( commands::verify::run(&ctx, project, offline).await? } Commands::Which { - binary: tool, + command: tool, project, } => commands::which::run(&ctx, tool, project).await?, Commands::Archive { @@ -195,7 +195,7 @@ enum Commands { /// Display which binary will be run for a given command Which { /// Name of the binary to find the absolute path of - binary: String, + command: String, /// Path to the manifest `criticalup.toml` #[arg(long)] project: Option, diff --git a/crates/criticalup-cli/tests/snapshots/cli__which__help_message.snap b/crates/criticalup-cli/tests/snapshots/cli__which__help_message.snap index da91c42e..46405ef6 100644 --- a/crates/criticalup-cli/tests/snapshots/cli__which__help_message.snap +++ b/crates/criticalup-cli/tests/snapshots/cli__which__help_message.snap @@ -11,10 +11,10 @@ stderr Display which binary will be run for a given command Usage: - criticalup-test which [OPTIONS] + criticalup-test which [OPTIONS] Arguments: - Name of the binary to find the absolute path of + Name of the binary to find the absolute path of Options: --project Path to the manifest `criticalup.toml`