Skip to content

fix(cli): brand --version output as contextcrawler instead of rtk - #24

Merged
thehoff merged 1 commit into
developfrom
fix/version-string-rebrand
May 18, 2026
Merged

thehoff merged 1 commit into
developfrom
fix/version-string-rebrand

Conversation

@thehoff

@thehoff thehoff commented May 18, 2026

Copy link
Copy Markdown
Owner

Summary

contextcrawler --version printed rtk 0.39.0. The clap derive's name = "rtk" attribute overrode the package name in --version / --help output — a leftover from the upstream rebrand sweep.

Fix

  • Change name = "rtk" → name = "contextcrawler" in Cli derive
  • Update about / long_about to match downstream framing
  • Add pinning regression test using clap::CommandFactory so a future revert fails the suite

Reviewed by Codex

  • No comments raised. Confirmed branding-only change with no functional regression.

Test plan

  • cargo test --bin contextcrawler — 2027 passed (+1 new)
  • Pre-fix: contextcrawler --version → rtk 0.39.0
  • Post-fix: contextcrawler --version → contextcrawler 0.39.0

Closes #22

`contextcrawler --version` printed `rtk 0.39.0`. The clap derive's
`name = "rtk"` attribute overrode the package name in --version /
--help output — leftover from the upstream rebrand sweep that never
made it to the clap attribute.

Change `name` to "contextcrawler" and update `about` / `long_about` to
match the downstream framing. Adds a pinning regression test
(`test_cli_name_pinned_to_contextcrawler`) that uses
`clap::CommandFactory::command().get_name()` to assert the brand
hasn't drifted — same insurance pattern as #19's RTK_MD constant test.

Pre-fix verification: `contextcrawler --version` -> "rtk 0.39.0".
Post-fix: -> "contextcrawler 0.39.0".

Test suite: 2027 passed (+1 new pinning test). No existing test
references the literal "rtk" version string.

Closes #22
@thehoff
thehoff merged commit a83b69a into develop May 18, 2026
3 checks passed
@thehoff
thehoff deleted the fix/version-string-rebrand branch May 18, 2026 06:05
noogalabs pushed a commit to noogalabs/contextcrawler that referenced this pull request Jun 4, 2026
… branding-lint extension

**Version bump 0.39.0 → 0.1.7.** The upstream rebase pulled in rtk's
`0.39.0` version; restoring the downstream `0.1.x` numbering line per
the maintainer's call. `.release-please-manifest.json` updated to
match. Last downstream tag was `v0.1.6` (2026-05-15); this is the
next in the sequence.

**release-please-config.json `package-name: "rtk"` → "contextcrawler".**
Caught by manual audit during release prep. Same regression-family as
thehoff#19 / thehoff#20 / thehoff#22: a rebrand gap the prior branding-lint (src/-scoped)
didn't catch because release-please-config.json lives at repo root.
Without this fix, release-please would have produced `rtk-vX.Y.Z`
tags and release-PR titles.

**Cargo.toml `extended-description` rebrand.** Line 77 still read
"rtk filters and compresses..." — same upstream-leak family. Fixed.

**Extended `tests/branding_lint.rs`** with a third test —
`branding_lint_config_files_pin_canonical_package_name` — that:
- Parses Cargo.toml and asserts `[package].name == "contextcrawler"`
- Parses release-please-config.json and asserts
  `packages["."]["package-name"] == "contextcrawler"`

This closes the gap that let release-please-config.json silently drift
to `"rtk"` post-rebase. Any future rebase that re-introduces an
upstream package-name fails `cargo test --test branding_lint` with an
explicit error pointing at issues thehoff#19/thehoff#20/thehoff#22 history.

**CHANGELOG.md** entry for v0.1.7 added, summarizing all PRs merged
today (thehoff#10 thehoff#15 thehoff#16 thehoff#21 thehoff#24 thehoff#25 thehoff#30) plus the deferred follow-ups
(thehoff#26 thehoff#27 thehoff#28 thehoff#29).

Tests: 2027 bin + 3 branding-lint (1 new) + 1 harness = all pass.
Verified: `contextcrawler --version` now prints `contextcrawler 0.1.7`.

Refs thehoff#19 thehoff#20 thehoff#22 thehoff#29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: --version shows rtk 0.39.0 instead of contextcrawler 0.39.0 (incomplete rebrand)

1 participant