mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 03:44:19 +01:00
Add NU_VERSION environment variable on startup (#10177)
This commit is contained in:
parent
f35808cb89
commit
d28f728787
@ -185,6 +185,11 @@ fn main() -> Result<()> {
|
||||
use_color,
|
||||
);
|
||||
|
||||
engine_state.add_env_var(
|
||||
"NU_VERSION".to_string(),
|
||||
Value::string(env!("CARGO_PKG_VERSION"), Span::unknown()),
|
||||
);
|
||||
|
||||
if parsed_nu_cli_args.no_std_lib.is_none() {
|
||||
load_standard_library(&mut engine_state)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user