diff --git a/Cargo.lock b/Cargo.lock index 38587a4..018744c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -84,7 +84,7 @@ dependencies = [ [[package]] name = "arborist-cli" -version = "0.1.0" +version = "0.1.1" dependencies = [ "arborist-metrics", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index 4ef4f56..98c007c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "arborist-cli" -version = "0.1.0" +version = "0.1.1" edition = "2024" description = "CLI for arborist-metrics: cognitive/cyclomatic complexity and SLOC metrics" license = "MIT OR Apache-2.0" @@ -11,6 +11,10 @@ keywords = ["complexity", "metrics", "cognitive", "cyclomatic", "cli"] categories = ["command-line-utilities", "development-tools"] exclude = [".devtrail/", ".github/", ".claude/", ".specify/", "specs/", "tests/fixtures/"] +[[bin]] +name = "arborist" +path = "src/main.rs" + [dependencies] arborist-metrics = { version = "0.1", features = ["all"] } clap = { version = "4", features = ["derive"] } diff --git a/src/update.rs b/src/update.rs index c9c0984..099a9c4 100644 --- a/src/update.rs +++ b/src/update.rs @@ -31,7 +31,7 @@ fn check_latest_version() -> ExitCode { match self_update::backends::github::Update::configure() .repo_owner(REPO_OWNER) .repo_name(REPO_NAME) - .bin_name("arborist-cli") + .bin_name("arborist") .current_version(CURRENT_VERSION) .build() { @@ -65,7 +65,7 @@ fn perform_update() -> ExitCode { let result = self_update::backends::github::Update::configure() .repo_owner(REPO_OWNER) .repo_name(REPO_NAME) - .bin_name("arborist-cli") + .bin_name("arborist") .current_version(CURRENT_VERSION) .show_download_progress(true) .show_output(false) diff --git a/tests/cli/directory.rs b/tests/cli/directory.rs index 42cada1..d928508 100644 --- a/tests/cli/directory.rs +++ b/tests/cli/directory.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T027: verify directory analysis finds all .rs files recursively diff --git a/tests/cli/exit_codes.rs b/tests/cli/exit_codes.rs index 971dbf9..2c4d60e 100644 --- a/tests/cli/exit_codes.rs +++ b/tests/cli/exit_codes.rs @@ -1,7 +1,7 @@ use assert_cmd::Command; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T037: verify `--threshold 5` exits with code 1 when functions exceed threshold diff --git a/tests/cli/filtering.rs b/tests/cli/filtering.rs index 8bea90e..642ff0c 100644 --- a/tests/cli/filtering.rs +++ b/tests/cli/filtering.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T036: verify `--threshold 5` shows all functions with `!` on exceeding ones diff --git a/tests/cli/multi_input.rs b/tests/cli/multi_input.rs index 992beab..1204b80 100644 --- a/tests/cli/multi_input.rs +++ b/tests/cli/multi_input.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T031: verify multiple positional arguments analyzes both files diff --git a/tests/cli/output_formats.rs b/tests/cli/output_formats.rs index 30227c8..3f1d9e3 100644 --- a/tests/cli/output_formats.rs +++ b/tests/cli/output_formats.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T020: verify `--format json` produces valid JSON with FileReport schema fields diff --git a/tests/cli/single_file.rs b/tests/cli/single_file.rs index ac877a2..c093ae6 100644 --- a/tests/cli/single_file.rs +++ b/tests/cli/single_file.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T011: verify `arborist tests/fixtures/simple.rs` produces table output diff --git a/tests/cli/stdin.rs b/tests/cli/stdin.rs index 6ac45ba..0dd9b46 100644 --- a/tests/cli/stdin.rs +++ b/tests/cli/stdin.rs @@ -2,7 +2,7 @@ use assert_cmd::Command; use predicates::prelude::*; fn cmd() -> Command { - Command::cargo_bin("arborist-cli").unwrap() + Command::cargo_bin("arborist").unwrap() } /// T021: verify stdin with `--language rust --format json` produces valid JSON