fix: fix with-env example with pipeline input (#4458)

This commit is contained in:
Justin Ma 2022-02-13 20:40:01 +08:00 committed by GitHub
parent 77eb4c4188
commit a520599fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
]