Skip to content

Commit 38d821e

Browse files
committed
Bump subs version to 0.6.0
Signed-off-by: Codex (GPT 5) <codex@openai.com>
1 parent f8e5bb1 commit 38d821e

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "substrate"
3-
version = "0.5.1"
3+
version = "0.6.0"
44
edition = "2024"
55
autobins = false
66

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const BREW_PACKAGE_PREFIX: &str = "brew:";
7878
const FORMULA_API_ROOT: &str = "https://formulae.brew.sh/api/formula";
7979
const FORMULA_API_INDEX_URL: &str = "https://formulae.brew.sh/api/formula.json";
8080
const PYPI_ROOT: &str = "https://pypi.org/pypi";
81+
const PKG_DISPLAY_NAME: &str = env!("CARGO_PKG_NAME");
8182
const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
8283
const RELOCATABLE_HOMEBREW_PREFIX: &str = "/opt/homebrew";
8384
const HOMEBREW_PREFIX_PLACEHOLDER: &str = "@@HOMEBREW_PREFIX@@";
@@ -1135,7 +1136,7 @@ fn dispatch_pkg(invocation: &Invocation, mut args: env::ArgsOs) -> Result<(), St
11351136
}
11361137

11371138
if is_version_flag(&first_arg) {
1138-
println!("{} {}", invocation.name, env!("CARGO_PKG_VERSION"));
1139+
println!("{PKG_DISPLAY_NAME} {}", env!("CARGO_PKG_VERSION"));
11391140
return Ok(());
11401141
}
11411142

tests/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn subs_top_level_cli_paths_cover_help_version_and_unknown_subcommands() {
3232

3333
let output = run_subs(&["--version"]);
3434
assert!(output.status.success());
35-
assert!(stdout(&output).contains(&format!("subs {}", pkg_version())));
35+
assert!(stdout(&output).contains(&format!("substrate {}", pkg_version())));
3636

3737
let output = run_subs(&["help", "x"]);
3838
assert!(output.status.success());

0 commit comments

Comments
 (0)