mirror of
https://github.com/nushell/nushell
synced 2024-12-25 20:43:09 +00:00
Document fn pipeline()
used with nu!
tests (#9609)
# Description Its purpose and its limitation around statements are not too obvious but ubiquituous in our `nu!` tests. Document its behavior as we remove it in many places for #8670 # User-Facing Changes None
This commit is contained in:
parent
53cd4df806
commit
168e7f7b16
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ impl Outcome {
|
|||
}
|
||||
}
|
||||
|
||||
/// Reformat a multiline pipeline into a single line for use with `nu -c`
|
||||
///
|
||||
/// Warning: Will not correctly handle statements that are not `;` separated!
|
||||
pub fn pipeline(commands: &str) -> String {
|
||||
commands
|
||||
.trim()
|
||||
|
|
Loading…
Reference in a new issue