mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Simplify string interpolation (#3401)
* [DRAFT] simplify string interpolation * Fix test
This commit is contained in:
@ -52,7 +52,7 @@ impl WholeStreamCommand for Each {
|
||||
Example {
|
||||
description: "Number each item and echo a message",
|
||||
example:
|
||||
"echo ['bob' 'fred'] | each --numbered { echo `{{$it.index}} is {{$it.item}}` }",
|
||||
"echo ['bob' 'fred'] | each --numbered { echo $\"{$it.index} is {$it.item}\" }",
|
||||
result: Some(vec![Value::from("0 is bob"), Value::from("1 is fred")]),
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user