mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +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:
@ -125,7 +125,7 @@ def process_call [
|
||||
# Use this information to implement your plugin logic
|
||||
|
||||
# Print the call to stderr, in raw nuon and as a table
|
||||
$plugin_call | to nuon --raw | print -e
|
||||
$plugin_call | to nuon | print -e
|
||||
$plugin_call | table -e | print -e
|
||||
|
||||
# Get the span from the call
|
||||
@ -264,4 +264,4 @@ def start_plugin [] {
|
||||
}) |
|
||||
each { from json | handle_input } |
|
||||
ignore
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user