forked from extern/nushell
Path commands: Put column path args behid flag; Allow path join
appending without flag (#4008)
* Change path join signature * Appending now works without flag * Column path operation is behind a -c flag * Move column path arg retrieval to a function Also improves errors * Fix path join tests * Propagate column path changes to all path commands * Update path command examples with columns paths * Modernize path command examples by removing "echo" * Improve structured path error message * Fix typo
This commit is contained in:
@ -18,7 +18,7 @@ fn splits_correctly_single_path() {
|
||||
cwd: "tests", pipeline(
|
||||
r#"
|
||||
echo ['home/viking/spam.txt']
|
||||
| path split
|
||||
| path split
|
||||
| last
|
||||
"#
|
||||
));
|
||||
@ -37,7 +37,7 @@ fn splits_correctly_with_column_path() {
|
||||
['home/viking/spam.txt', 'barn/cow/moo.png']
|
||||
['home/viking/eggs.txt', 'barn/goat/cheese.png']
|
||||
]
|
||||
| path split home barn
|
||||
| path split -c [ home barn ]
|
||||
| get barn
|
||||
| length
|
||||
"#
|
||||
|
Reference in New Issue
Block a user