mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 00:17:02 +02:00
$it: add conversion from Int for external commands (#1218)
This commit is contained in:
parent
2ab5803f00
commit
98028433ad
@ -80,6 +80,10 @@ async fn run_with_iterator_arg(
|
|||||||
let input_strings = inputs
|
let input_strings = inputs
|
||||||
.iter()
|
.iter()
|
||||||
.map(|i| match i {
|
.map(|i| match i {
|
||||||
|
Value {
|
||||||
|
value: UntaggedValue::Primitive(Primitive::Int(i)),
|
||||||
|
..
|
||||||
|
} => Ok(i.to_string()),
|
||||||
Value {
|
Value {
|
||||||
value: UntaggedValue::Primitive(Primitive::String(s)),
|
value: UntaggedValue::Primitive(Primitive::String(s)),
|
||||||
..
|
..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user