Skip to content

Commit 168e7f7

Browse files
authored
Document fn pipeline() used with nu! tests (nushell#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 nushell#8670 # User-Facing Changes None
1 parent 53cd4df commit 168e7f7

File tree

1 file changed

+3
-0
lines changed
  • crates/nu-test-support/src

1 file changed

+3
-0
lines changed

crates/nu-test-support/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ impl Outcome {
2727
}
2828
}
2929

30+
/// Reformat a multiline pipeline into a single line for use with `nu -c`
31+
///
32+
/// Warning: Will not correctly handle statements that are not `;` separated!
3033
pub fn pipeline(commands: &str) -> String {
3134
commands
3235
.trim()

0 commit comments

Comments
 (0)