Revert range expansion for to nuon (#8210)

# Description

The code to generate the nuon format supports writing range literals,
which obviates the need to expand the range as added in #8047

# User-Facing Changes

`to nuon` will still output ranges as literals

# Tests + Formatting

- Add test for `to nuon` range output
- Add `from nuon` test for range
This commit is contained in:
Stefan Holderbach
2023-02-25 18:29:30 +01:00
committed by GitHub
parent b36ac8f2f8
commit 836a56b347
2 changed files with 27 additions and 1 deletions

View File

@ -34,7 +34,6 @@ impl Command for ToNuon {
call: &Call,
input: PipelineData,
) -> Result<PipelineData, ShellError> {
let input = input.try_expand_range()?;
Ok(Value::String {
val: to_nuon(call, input)?,
span: call.head,