mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 14:48:44 +02:00
Add infrastructure for experimental options (#16028)
Co-authored-by: Bahex <Bahex@users.noreply.github.com>
This commit is contained in:
@ -188,6 +188,17 @@ pub fn version(engine_state: &EngineState, span: Span) -> Result<PipelineData, S
|
||||
);
|
||||
}
|
||||
|
||||
record.push(
|
||||
"experimental_options",
|
||||
Value::string(
|
||||
nu_experimental::ALL
|
||||
.iter()
|
||||
.map(|option| format!("{}={}", option.identifier(), option.get()))
|
||||
.join(", "),
|
||||
span,
|
||||
),
|
||||
);
|
||||
|
||||
Ok(Value::record(record, span).into_pipeline_data())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user