forked from extern/nushell
fix: fix with-env example with pipeline input (#4458)
This commit is contained in:
parent
77eb4c4188
commit
a520599fa0
2
crates/nu-command/src/env/with_env.rs
vendored
2
crates/nu-command/src/env/with_env.rs
vendored
@ -63,7 +63,7 @@ impl Command for WithEnv {
|
||||
},
|
||||
Example {
|
||||
description: "Set by row(e.g. `open x.json` or `from json`)",
|
||||
example: r#"echo '{"X":"Y","W":"Z"}'|from json|with-env $it { echo $env.X $env.W }"#,
|
||||
example: r#"echo '{"X":"Y","W":"Z"}'|from json|with-env $in { echo $env.X $env.W }"#,
|
||||
result: None,
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user