refactor: s/toolpath-cli/path-cli/ keep toolpath-cli as deprecated shim#64
Merged
Conversation
The unified CLI crate now matches the binary it installs. The source moved verbatim to crates/path-cli/ via git mv (rename detection preserves history). Extracted a `pub fn run()` library so the shim can re-export it without duplicating source. The old `toolpath-cli` crate name is preserved as a thin shim that depends on path-cli and ships the same `path` binary, so `cargo install toolpath-cli` keeps working unchanged for existing users. The shim lives outside the workspace (`exclude = ["crates/toolpath-cli"]`) because both crates produce a binary literally named `path`, and cargo can't write two bin targets to the same workspace target/debug/path. Practical consequence: workspace-wide operations (`cargo build/test --workspace`, `-p toolpath-cli`) skip the shim; to touch it directly use `--manifest-path crates/toolpath-cli/Cargo.toml`. The release script special-cases this in get_version and publish. Bundled fixes: - cmd_pathbase user-agent now reads "path-cli/<version>" instead of the hardcoded "toolpath-cli/<version>". - Pre-existing rustfmt warnings in cmd_list/cmd_import/cmd_show and a prettier reformat in site/eleventy.config.js applied during this session. Versioning: - path-cli starts at 0.5.0 (continues from toolpath-cli 0.5.0). - toolpath-cli bumps to 0.5.1 as the transitional shim release. - Release script publishes path-cli in tier 3 and the shim in tier 4.
|
🔍 Preview deployed: https://a2f20145.toolpath.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The unified CLI crate now matches the binary it installs. The source moved verbatim to crates/path-cli/ via git mv (rename detection preserves history). Extracted a
pub fn run()library so the shim can re-export it without duplicating source.The old
toolpath-clicrate name is preserved as a thin shim that depends on path-cli and ships the samepathbinary, socargo install toolpath-clikeeps working unchanged for existing users. The shim lives outside the workspace (exclude = ["crates/toolpath-cli"]) because both crates produce a binary literally namedpath, and cargo can't write two bin targets to the same workspace target/debug/path. Practical consequence: workspace-wide operations (cargo build/test --workspace,-p toolpath-cli) skip the shim; to touch it directly use--manifest-path crates/toolpath-cli/Cargo.toml. The release script special-cases this in get_version and publish.Bundled fixes:
Versioning: