nu_test_support

Function pipeline

Source
pub fn pipeline(commands: &str) -> String
Expand description

Reformat a multiline pipeline into a single line for use with nu -c

Warning: Will not correctly handle statements that are not ; separated!