mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 18:31:11 +02:00
Add subcommands. Switch from-* and to-* to them (#1708)
This commit is contained in:
@ -48,13 +48,6 @@ fn automatically_change_directory_with_trailing_slash_and_same_name_as_command()
|
||||
})
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn correctly_escape_external_arguments() {
|
||||
// let actual = nu!(cwd: ".", r#"^echo '[{"foo": "bar"}]' | from-json | to-json"#);
|
||||
|
||||
// assert_eq!(actual, "{\"foo\":\"bar\"}");
|
||||
// }
|
||||
|
||||
#[test]
|
||||
fn correctly_escape_external_arguments() {
|
||||
let actual = nu!(cwd: ".", r#"^echo '$0'"#);
|
||||
|
@ -152,7 +152,7 @@ mod tilde_expansion {
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
ls | sort-by name | group-by type | each { get File.name | echo $it } | to-json
|
||||
ls | sort-by name | group-by type | each { get File.name | echo $it } | to json
|
||||
"#
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user