mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:06:40 +02:00
feat: make to nuon raw option remove all white space (#15609)
# Description Fixes #9942 This adds a new `--minified` flag to `to nuon` which removes all possible white space. I added an example test to demonstrate the functionality. # User-Facing Changes New flag becomes available to the user.
This commit is contained in:
@ -337,7 +337,7 @@ fn into_sqlite_big_insert() {
|
||||
let nuon = nuon::to_nuon(
|
||||
&engine_state,
|
||||
&value,
|
||||
nuon::ToStyle::Raw,
|
||||
nuon::ToStyle::Default,
|
||||
Some(Span::unknown()),
|
||||
serialize_types,
|
||||
)
|
||||
|
@ -9,7 +9,7 @@ fn filter_with_return_in_closure() {
|
||||
return true
|
||||
};
|
||||
return false;
|
||||
} | to nuon --raw
|
||||
} | to nuon
|
||||
"
|
||||
));
|
||||
|
||||
|
@ -36,7 +36,7 @@ fn headers_handles_missing_values() {
|
||||
"
|
||||
[{x: a, y: b}, {x: 1, y: 2}, {x: 1, z: 3}]
|
||||
| headers
|
||||
| to nuon --raw
|
||||
| to nuon
|
||||
"
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user