mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 06:39:33 +02:00
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 {
|
Example {
|
||||||
description: "Set by row(e.g. `open x.json` or `from json`)",
|
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,
|
result: None,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user