Skip to content

Commit 8d288f0

Browse files
committed
Add PKGX_VERSION to env
1 parent 1d583e7 commit 8d288f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/cli/src/x.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ pub async fn exec(
9090
pkgx_lvl.to_string(),
9191
);
9292

93+
env.insert(
94+
"PKGX_VERSION".to_string(),
95+
env!("CARGO_PKG_VERSION").to_string(),
96+
);
97+
9398
// TODO should be output by +syntax too
9499
env.insert(
95100
construct_platform_case_aware_env_key("PKGX_ENV".to_string()),

0 commit comments

Comments
 (0)