docs: clarify print and echo commands (#5909)

I thought this comment was relevant:
https://github.com/nushell/nushell/issues/5724#issuecomment-1148164153
This commit is contained in:
Benoît Cortier
2022-06-29 18:43:46 -04:00
committed by GitHub
parent 7aabc381a3
commit 1c15a4ed3a
2 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,10 @@ impl Command for Echo {
.category(Category::Core)
}
fn extra_usage(&self) -> &str {
"Unlike `print`, this command returns an actual value that will be passed to the next command of the pipeline."
}
fn run(
&self,
engine_state: &EngineState,