forked from extern/nushell
Introduce metadata into the pipeline (#397)
This commit is contained in:
@ -78,10 +78,13 @@ fn bool(
|
||||
let mut rng = thread_rng();
|
||||
let bool_result: bool = rng.gen_bool(probability);
|
||||
|
||||
Ok(PipelineData::Value(Value::Bool {
|
||||
val: bool_result,
|
||||
span,
|
||||
}))
|
||||
Ok(PipelineData::Value(
|
||||
Value::Bool {
|
||||
val: bool_result,
|
||||
span,
|
||||
},
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -70,10 +70,13 @@ fn chars(
|
||||
.map(char::from)
|
||||
.collect::<String>();
|
||||
|
||||
Ok(PipelineData::Value(Value::String {
|
||||
val: random_string,
|
||||
span,
|
||||
}))
|
||||
Ok(PipelineData::Value(
|
||||
Value::String {
|
||||
val: random_string,
|
||||
span,
|
||||
},
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user