mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 09:28:19 +02:00
Introduce metadata into the pipeline (#397)
This commit is contained in:
@ -230,10 +230,13 @@ fn from_eml(
|
||||
);
|
||||
}
|
||||
|
||||
Ok(PipelineData::Value(Value::from(Spanned {
|
||||
item: collected,
|
||||
span: head,
|
||||
})))
|
||||
Ok(PipelineData::Value(
|
||||
Value::from(Spanned {
|
||||
item: collected,
|
||||
span: head,
|
||||
}),
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -194,7 +194,7 @@ fn from_ods(
|
||||
span: head,
|
||||
};
|
||||
|
||||
Ok(PipelineData::Value(record))
|
||||
Ok(PipelineData::Value(record, None))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -67,11 +67,14 @@ fn from_url(input: PipelineData, head: Span, config: &Config) -> Result<Pipeline
|
||||
vals.push(Value::String { val: v, span: head })
|
||||
}
|
||||
|
||||
Ok(PipelineData::Value(Value::Record {
|
||||
cols,
|
||||
vals,
|
||||
span: head,
|
||||
}))
|
||||
Ok(PipelineData::Value(
|
||||
Value::Record {
|
||||
cols,
|
||||
vals,
|
||||
span: head,
|
||||
},
|
||||
None,
|
||||
))
|
||||
}
|
||||
_ => Err(ShellError::UnsupportedInput(
|
||||
"String not compatible with url-encoding".to_string(),
|
||||
|
@ -194,7 +194,7 @@ fn from_xlsx(
|
||||
span: head,
|
||||
};
|
||||
|
||||
Ok(PipelineData::Value(record))
|
||||
Ok(PipelineData::Value(record, None))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
Reference in New Issue
Block a user