mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
Add NU_VERSION environment variable on startup (#10177)
This commit is contained in:
parent
f35808cb89
commit
d28f728787
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue