Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"] }
Expand Down
4 changes: 2 additions & 2 deletions src/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/exit_codes.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/filtering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/multi_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/output_formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/single_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/stdin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading