mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:25:38 +02:00
Rename: change the SyntaxShape of -c
flag from list to record (#10526)
# Description Fixes: #7085 Also closes: #7526 # User-Facing Changes After this change, we need to use `-c` flag like this: ```nushell [[a, b, c]; [1, 2, 3]] | rename -c { a: ham } ``` But we can rename many columns easily, here is another example: ```nushell [[a, b, c]; [1, 2, 3]] | rename -c { a: ham, b: ham2 } ```
This commit is contained in:
@ -107,10 +107,10 @@ fn errors_if_columns_param_is_empty() {
|
||||
| lines
|
||||
| wrap name
|
||||
| default "arepa!" hit
|
||||
| rename -c []
|
||||
| rename -c {}
|
||||
"#
|
||||
));
|
||||
|
||||
assert!(actual.err.contains("The column list cannot be empty"));
|
||||
assert!(actual.err.contains("The column info cannot be empty"));
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user