chore: rename shipped binary from youtrack-cli to yt #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/rename-binary-to-yt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Renames the shipped binary from
youtrack-clitoyt, mirroring how Forgejo CLI ships asfjfrom aforgejo-clipackage. The Cargo package name, the repo, and the Generic Package URL slug all stay asyoutrack-cli; only the executable filename changes.What's in scope
Cargo.tomlgrows an explicit[[bin]] name = "yt".cargo buildproducestarget/release/yt.yt --helpshowsUsage: yt ....run 'youtrack-cli auth login --base-url <url>'hint becomesrun 'yt auth login --base-url <url>'.yt,EnvFilter::new("yt=warn")(inmain.rs) andRUST_LOG: yt=info(incompose.dev.yml) replace the staleyoutrack_cli=...defaults.justfile'srun-debugand the README example useyt=debug.target/release/ytinto the export and runtime stages;ENTRYPOINTis/app/yt; the dep-prime cleanup dropstarget/release/deps/yt-*andtarget/release/yt.compose.ymlcopies/app/ytto/dist/yt. The CI workflow uploadsyt-linux-x86_64(the Generic Package URL's path slug/youtrack-cli/<tag>/is unchanged; only the trailing filename component isyt-...).What's deliberately out of scope
Per the scope choice on this PR, none of the following are touched:
youtrack-cli).YOUTRACK_CLI_CONFIG,YOUTRACK_CLI_GIT_HASH,YOUTRACK_CLI_BUILD_DATEenv vars.~/.config/youtrack-cli/config.yaml). Existing installs keep working without re-runningauth login.youtrack-cli:local,youtrack-cli:check), container names (youtrack-cli-build-*,dev-youtrack-cli-dev-*), named volumes (dev-youtrack-cli-cargo-*)./api/packages/.../youtrack-cli/<tag>/...). Only the trailing filename changed.If any of these need to follow the rename later, they should be a separate PR with explicit migration notes (especially the config-dir, which would break existing installs).
Verification
cargo fmt --checkclean.cargo clippy --all-targets -- -D warningsclean.cargo test --all-targets: 136 tests pass (no test changes were needed; the rename is invisible to the command-level wiremock tests).cargo run -- --helpshowsUsage: yt [OPTIONS] <COMMAND>.youtrack_cli(snake_case) references insrc/,oci-build/,.forgejo/,compose*.yml,justfile, README.md, or CLAUDE.md.Test plan
cargo build --release. Confirmtarget/release/ytexists (andtarget/release/youtrack-clidoes not).target/release/yt --helpshowsUsage: yt.just build-docker-exportproduces./dist/yt.https://dev.a8n.run/api/packages/pandoras-box/generic/youtrack-cli/<tag>/yt-linux-x86_64. Oldyoutrack-cli-linux-x86_64URLs for previous tags still work (they were uploaded under that name); new tags publish underyt-linux-x86_64.~/.config/youtrack-cli/config.yamlkeeps working without changes; no re-auth needed.