diff --git a/crates/nu-test-support/src/lib.rs b/crates/nu-test-support/src/lib.rs index 5f95efbab4..37e78f8f0e 100644 --- a/crates/nu-test-support/src/lib.rs +++ b/crates/nu-test-support/src/lib.rs @@ -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()