mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01: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
@ -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 New Issue
Block a user