From 254fec34d099fb6a7acc34ba1c8876ca600b685a Mon Sep 17 00:00:00 2001 From: Brad Larsen Date: Mon, 24 Apr 2023 09:57:19 -0400 Subject: [PATCH] Rename `noseyparker-bin` to `noseyparker-cli`; bump version number; add version tests --- CHANGELOG.md | 7 +++++++ Cargo.lock | 10 +++++----- Cargo.toml | 2 +- Dockerfile | 2 +- .../Cargo.toml | 2 +- .../src/bin/noseyparker/args.rs | 2 ++ .../src/bin/noseyparker/cmd_datastore.rs | 0 .../src/bin/noseyparker/cmd_github.rs | 0 .../src/bin/noseyparker/cmd_report.rs | 0 .../src/bin/noseyparker/cmd_rules.rs | 0 .../src/bin/noseyparker/cmd_scan.rs | 0 .../src/bin/noseyparker/cmd_summarize.rs | 0 .../src/bin/noseyparker/main.rs | 0 .../tests/common/mod.rs | 0 ...parker_github__github_repos_list_noargs-2.snap | 0 ...parker_github__github_repos_list_noargs-3.snap | 0 ...eyparker_github__github_repos_list_noargs.snap | 0 ..._github__github_repos_list_org_badtoken-2.snap | 0 ..._github__github_repos_list_org_badtoken-3.snap | 0 ...er_github__github_repos_list_org_badtoken.snap | 0 ...github__github_repos_list_user_badtoken-2.snap | 0 ...github__github_repos_list_user_badtoken-3.snap | 0 ...r_github__github_repos_list_user_badtoken.snap | 0 .../snapshots/test_noseyparker_help__help-2.snap | 0 .../snapshots/test_noseyparker_help__help-3.snap | 0 .../snapshots/test_noseyparker_help__help.snap | 0 .../test_noseyparker_help__help_datastore-2.snap | 0 .../test_noseyparker_help__help_datastore-3.snap | 0 .../test_noseyparker_help__help_datastore.snap | 0 .../test_noseyparker_help__help_github-2.snap | 0 .../test_noseyparker_help__help_github-3.snap | 0 .../test_noseyparker_help__help_github.snap | 0 ...est_noseyparker_help__help_github_repos-2.snap | 0 ...est_noseyparker_help__help_github_repos-3.snap | 0 .../test_noseyparker_help__help_github_repos.snap | 0 ...seyparker_help__help_github_repos_short-2.snap | 0 ...seyparker_help__help_github_repos_short-3.snap | 0 ...noseyparker_help__help_github_repos_short.snap | 0 ...est_noseyparker_help__help_github_short-2.snap | 0 ...est_noseyparker_help__help_github_short-3.snap | 0 .../test_noseyparker_help__help_github_short.snap | 0 .../test_noseyparker_help__help_report-2.snap | 0 .../test_noseyparker_help__help_report-3.snap | 0 .../test_noseyparker_help__help_report.snap | 0 ...est_noseyparker_help__help_report_short-2.snap | 0 ...est_noseyparker_help__help_report_short-3.snap | 0 .../test_noseyparker_help__help_report_short.snap | 0 .../test_noseyparker_help__help_rules-2.snap | 0 .../test_noseyparker_help__help_rules-3.snap | 0 .../test_noseyparker_help__help_rules.snap | 0 .../test_noseyparker_help__help_scan-2.snap | 0 .../test_noseyparker_help__help_scan-3.snap | 0 .../test_noseyparker_help__help_scan.snap | 0 .../test_noseyparker_help__help_scan_short-2.snap | 0 .../test_noseyparker_help__help_scan_short-3.snap | 0 .../test_noseyparker_help__help_scan_short.snap | 0 .../test_noseyparker_help__help_short-2.snap | 0 .../test_noseyparker_help__help_short-3.snap | 0 .../test_noseyparker_help__help_short.snap | 0 .../test_noseyparker_help__help_summarize-2.snap | 0 .../test_noseyparker_help__help_summarize-3.snap | 0 .../test_noseyparker_help__help_summarize.snap | 0 ..._noseyparker_help__help_summarize_short-2.snap | 0 ..._noseyparker_help__help_summarize_short-3.snap | 0 ...st_noseyparker_help__help_summarize_short.snap | 0 .../test_noseyparker_help__no_args-2.snap | 0 .../test_noseyparker_help__no_args-3.snap | 0 .../snapshots/test_noseyparker_help__no_args.snap | 0 .../test_noseyparker_help__version_command-2.snap | 5 +++++ .../test_noseyparker_help__version_command-3.snap | 10 ++++++++++ .../test_noseyparker_help__version_command.snap | 5 +++++ .../test_noseyparker_help__version_long-2.snap | 6 ++++++ .../test_noseyparker_help__version_long-3.snap | 5 +++++ .../test_noseyparker_help__version_long.snap | 5 +++++ .../test_noseyparker_help__version_short-2.snap | 6 ++++++ .../test_noseyparker_help__version_short-3.snap | 5 +++++ .../test_noseyparker_help__version_short.snap | 5 +++++ .../test_noseyparker_scan__scan_secrets1-2.snap | 0 .../test_noseyparker_scan__scan_secrets1-3.snap | 0 .../test_noseyparker_scan__scan_secrets1-4.snap | 0 .../test_noseyparker_scan__scan_secrets1-5.snap | 0 .../test_noseyparker_scan__scan_secrets1-6.snap | 0 .../test_noseyparker_scan__scan_secrets1-7.snap | 0 .../test_noseyparker_scan__scan_secrets1.snap | 0 ...er_scan__test_scan_git_url__file_scheme-2.snap | 0 ...er_scan__test_scan_git_url__file_scheme-3.snap | 0 ...rker_scan__test_scan_git_url__file_scheme.snap | 0 ...er_scan__test_scan_git_url__http_scheme-2.snap | 0 ...er_scan__test_scan_git_url__http_scheme-3.snap | 0 ...rker_scan__test_scan_git_url__http_scheme.snap | 0 ...rker_scan__test_scan_git_url__no_scheme-2.snap | 0 ...rker_scan__test_scan_git_url__no_scheme-3.snap | 0 ...parker_scan__test_scan_git_url__no_scheme.snap | 0 ...ker_scan__test_scan_git_url__ssh_scheme-2.snap | 0 ...ker_scan__test_scan_git_url__ssh_scheme-3.snap | 0 ...arker_scan__test_scan_git_url__ssh_scheme.snap | 0 .../tests/test_noseyparker_github.rs | 0 .../tests/test_noseyparker_help.rs | 15 +++++++++++++++ .../tests/test_noseyparker_scan.rs | 0 99 files changed, 84 insertions(+), 8 deletions(-) rename crates/{noseyparker-bin => noseyparker-cli}/Cargo.toml (99%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/args.rs (99%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_datastore.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_github.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_report.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_rules.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_scan.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/cmd_summarize.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/src/bin/noseyparker/main.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/common/mod.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_noargs.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_datastore-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_datastore-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_datastore.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_repos_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_github_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_report_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_rules-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_rules-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_rules.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_scan_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize_short-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize_short-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__help_summarize_short.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__no_args-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__no_args-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_help__no_args.snap (100%) create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-2.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-3.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-2.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-3.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-2.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-3.snap create mode 100644 crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short.snap rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-4.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-5.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-6.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1-7.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__scan_secrets1.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-2.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-3.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme.snap (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/test_noseyparker_github.rs (100%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/test_noseyparker_help.rs (87%) rename crates/{noseyparker-bin => noseyparker-cli}/tests/test_noseyparker_scan.rs (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index d88dee235..9391ed633 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased +## [v0.13.0](https://github.com/praetorian-inc/noseyparker/releases/v0.13.0) (2023-04-24) + +A prebuilt multiplatform Docker image for this release is available for x86_64 and ARM64 architectures: +``` +docker pull ghcr.io/praetorian-inc/noseyparker:v0.13.0 +``` + ### Changes - Nosey Parker now statically links against a bundled version of [Vectorscan](https://github.com/Vectorcamp/vectorscan) for regular expression matching instead of [Hyperscan](https://github.com/intel/hyperscan) ([#5](https://github.com/praetorian-inc/noseyparker/issues/5)). This makes building from source simpler, particularly for ARM-based platforms. diff --git a/Cargo.lock b/Cargo.lock index 655996e1b..7254ae83f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2154,7 +2154,7 @@ checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "noseyparker" -version = "0.12.0-dev" +version = "0.13.0" dependencies = [ "anyhow", "atoi", @@ -2185,8 +2185,8 @@ dependencies = [ ] [[package]] -name = "noseyparker-bin" -version = "0.12.0-dev" +name = "noseyparker-cli" +version = "0.13.0" dependencies = [ "anyhow", "assert_cmd", @@ -3515,7 +3515,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "vectorscan" -version = "0.12.0-dev" +version = "0.13.0" dependencies = [ "bitflags 2.0.2", "foreign-types 0.5.0", @@ -3525,7 +3525,7 @@ dependencies = [ [[package]] name = "vectorscan-sys" -version = "0.12.0-dev" +version = "0.13.0" dependencies = [ "bindgen", "cmake", diff --git a/Cargo.toml b/Cargo.toml index 8ad41d4ec..44078786a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "Apache-2.0" authors = ["Brad Larsen "] homepage = "https://github.com/praetorian-inc/noseyparker" repository = "https://github.com/praetorian-inc/noseyparker" -version = "0.12.0-dev" +version = "0.13.0" publish = false diff --git a/Dockerfile b/Dockerfile index 2626d43b6..602ec398f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ WORKDIR "/noseyparker" COPY . . RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse \ - cargo install --root /usr/local --profile release --locked --path crates/noseyparker-bin + cargo install --root /usr/local --profile release --locked --path crates/noseyparker-cli ################################################################################ # Build a smaller image just for running the `noseyparker` binary diff --git a/crates/noseyparker-bin/Cargo.toml b/crates/noseyparker-cli/Cargo.toml similarity index 99% rename from crates/noseyparker-bin/Cargo.toml rename to crates/noseyparker-cli/Cargo.toml index 1161e6d8f..430900e4a 100644 --- a/crates/noseyparker-bin/Cargo.toml +++ b/crates/noseyparker-cli/Cargo.toml @@ -7,7 +7,7 @@ homepage.workspace = true repository.workspace = true publish.workspace = true -name = "noseyparker-bin" +name = "noseyparker-cli" version.workspace = true description = "Nosey Parker is a command-line program that finds secrets and sensitive information in textual data and Git history." diff --git a/crates/noseyparker-bin/src/bin/noseyparker/args.rs b/crates/noseyparker-cli/src/bin/noseyparker/args.rs similarity index 99% rename from crates/noseyparker-bin/src/bin/noseyparker/args.rs rename to crates/noseyparker-cli/src/bin/noseyparker/args.rs index 1f8160eee..7f891fcbc 100644 --- a/crates/noseyparker-bin/src/bin/noseyparker/args.rs +++ b/crates/noseyparker-cli/src/bin/noseyparker/args.rs @@ -9,6 +9,8 @@ use noseyparker::git_url::GitUrl; // ----------------------------------------------------------------------------- #[derive(Parser, Debug)] #[command( + name("noseyparker"), + author, // retrieved from Cargo.toml `authors` version, // retrieved from Cargo.toml `version` about, // retrieved from Cargo.toml `description` diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_datastore.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_datastore.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_datastore.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_datastore.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_github.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_github.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_github.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_github.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_report.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_report.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_report.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_report.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_rules.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_rules.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_rules.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_rules.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_scan.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_scan.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_scan.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_scan.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/cmd_summarize.rs b/crates/noseyparker-cli/src/bin/noseyparker/cmd_summarize.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/cmd_summarize.rs rename to crates/noseyparker-cli/src/bin/noseyparker/cmd_summarize.rs diff --git a/crates/noseyparker-bin/src/bin/noseyparker/main.rs b/crates/noseyparker-cli/src/bin/noseyparker/main.rs similarity index 100% rename from crates/noseyparker-bin/src/bin/noseyparker/main.rs rename to crates/noseyparker-cli/src/bin/noseyparker/main.rs diff --git a/crates/noseyparker-bin/tests/common/mod.rs b/crates/noseyparker-cli/tests/common/mod.rs similarity index 100% rename from crates/noseyparker-bin/tests/common/mod.rs rename to crates/noseyparker-cli/tests/common/mod.rs diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_noargs.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_noargs.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_org_badtoken.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_github__github_repos_list_user_badtoken.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_datastore.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_datastore.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_repos_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_repos_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_github_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_github_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_report_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_report_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_rules.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_rules.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_scan_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_scan_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__help_summarize_short.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__help_summarize_short.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_help__no_args.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__no_args.snap diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-2.snap new file mode 100644 index 000000000..0267a1c88 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-2.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stdout +--- + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-3.snap new file mode 100644 index 000000000..4d1336a67 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command-3.snap @@ -0,0 +1,10 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stderr +--- +error: unrecognized subcommand 'version' + +Usage: noseyparker [OPTIONS] + +For more information, try '--help'. + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command.snap new file mode 100644 index 000000000..61e35d03a --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_command.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: status +--- +exit status: 2 diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-2.snap new file mode 100644 index 000000000..4b16cc1d7 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-2.snap @@ -0,0 +1,6 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stdout +--- +noseyparker 0.13.0 + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-3.snap new file mode 100644 index 000000000..42a2b5a60 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long-3.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stderr +--- + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long.snap new file mode 100644 index 000000000..b11cb4d74 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_long.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: status +--- +exit status: 0 diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-2.snap new file mode 100644 index 000000000..4b16cc1d7 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-2.snap @@ -0,0 +1,6 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stdout +--- +noseyparker 0.13.0 + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-3.snap new file mode 100644 index 000000000..42a2b5a60 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short-3.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: stderr +--- + diff --git a/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short.snap new file mode 100644 index 000000000..b11cb4d74 --- /dev/null +++ b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_help__version_short.snap @@ -0,0 +1,5 @@ +--- +source: crates/noseyparker-cli/tests/test_noseyparker_help.rs +expression: status +--- +exit status: 0 diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-4.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-4.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-4.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-4.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-5.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-5.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-5.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-5.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-6.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-6.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-6.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-6.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-7.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-7.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1-7.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1-7.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__scan_secrets1.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__scan_secrets1.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__file_scheme.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__http_scheme.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__no_scheme.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-2.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-2.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-2.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-2.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-3.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-3.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-3.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme-3.snap diff --git a/crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme.snap b/crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme.snap similarity index 100% rename from crates/noseyparker-bin/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme.snap rename to crates/noseyparker-cli/tests/snapshots/test_noseyparker_scan__test_scan_git_url__ssh_scheme.snap diff --git a/crates/noseyparker-bin/tests/test_noseyparker_github.rs b/crates/noseyparker-cli/tests/test_noseyparker_github.rs similarity index 100% rename from crates/noseyparker-bin/tests/test_noseyparker_github.rs rename to crates/noseyparker-cli/tests/test_noseyparker_github.rs diff --git a/crates/noseyparker-bin/tests/test_noseyparker_help.rs b/crates/noseyparker-cli/tests/test_noseyparker_help.rs similarity index 87% rename from crates/noseyparker-bin/tests/test_noseyparker_help.rs rename to crates/noseyparker-cli/tests/test_noseyparker_help.rs index fa2f4f788..124db90ab 100644 --- a/crates/noseyparker-bin/tests/test_noseyparker_help.rs +++ b/crates/noseyparker-cli/tests/test_noseyparker_help.rs @@ -90,3 +90,18 @@ fn help_github_repos() { fn help_github_repos_short() { assert_cmd_snapshot!(noseyparker_success!("github", "repos", "-h")); } + +#[test] +fn version_short() { + assert_cmd_snapshot!(noseyparker_success!("-V")); +} + +#[test] +fn version_long() { + assert_cmd_snapshot!(noseyparker_success!("--version")); +} + +#[test] +fn version_command() { + assert_cmd_snapshot!(noseyparker_failure!("version")); +} diff --git a/crates/noseyparker-bin/tests/test_noseyparker_scan.rs b/crates/noseyparker-cli/tests/test_noseyparker_scan.rs similarity index 100% rename from crates/noseyparker-bin/tests/test_noseyparker_scan.rs rename to crates/noseyparker-cli/tests/test_noseyparker_scan.rs