mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
Lazy record deprecation (#12656)
# Description In this week's nushell meeting, we decided to go ahead with #12622 and remove lazy records in 0.94.0. For 0.93.0, we will only deprecate `lazy make`, and so this PR makes `lazy make` print a deprecation warning. # User-Facing Changes None, besides the deprecation warning. # After Submitting Remove lazy records.
This commit is contained in:
parent
25cbcb511d
commit
530162b4c4
@ -54,6 +54,18 @@ impl Command for LazyMake {
|
||||
call: &Call,
|
||||
_input: PipelineData,
|
||||
) -> Result<PipelineData, ShellError> {
|
||||
nu_protocol::report_error_new(
|
||||
engine_state,
|
||||
&ShellError::GenericError {
|
||||
error: "Deprecated command".into(),
|
||||
msg: "warning: lazy records and the `lazy make` command will be removed in 0.94.0"
|
||||
.into(),
|
||||
span: Some(call.head),
|
||||
help: None,
|
||||
inner: vec![],
|
||||
},
|
||||
);
|
||||
|
||||
let span = call.head;
|
||||
let columns: Vec<Spanned<String>> = call
|
||||
.get_flag(engine_state, stack, "columns")?
|
||||
|
Loading…
Reference in New Issue
Block a user