diff --git a/crates/nu-cmd-lang/src/core_commands/export_extern_wrapped.rs b/crates/nu-cmd-lang/src/core_commands/export_extern_wrapped.rs index 6c5f60fcd1..8ede857c55 100644 --- a/crates/nu-cmd-lang/src/core_commands/export_extern_wrapped.rs +++ b/crates/nu-cmd-lang/src/core_commands/export_extern_wrapped.rs @@ -34,11 +34,21 @@ impl Command for ExportExternWrapped { fn run( &self, - _engine_state: &EngineState, + engine_state: &EngineState, _stack: &mut Stack, - _call: &Call, + call: &Call, _input: PipelineData, ) -> Result { + nu_protocol::report_error_new( + engine_state, + &ShellError::GenericError( + "Deprecated command".into(), + "`export extern-wrapped` is deprecated and will be removed in 0.88.".into(), + Some(call.head), + Some("Use `export def --wrapped` instead".into()), + vec![], + ), + ); Ok(PipelineData::empty()) } diff --git a/crates/nu-cmd-lang/src/core_commands/extern_wrapped.rs b/crates/nu-cmd-lang/src/core_commands/extern_wrapped.rs index d54ea1e49a..4919a60b01 100644 --- a/crates/nu-cmd-lang/src/core_commands/extern_wrapped.rs +++ b/crates/nu-cmd-lang/src/core_commands/extern_wrapped.rs @@ -37,11 +37,21 @@ impl Command for ExternWrapped { fn run( &self, - _engine_state: &EngineState, + engine_state: &EngineState, _stack: &mut Stack, - _call: &Call, + call: &Call, _input: PipelineData, ) -> Result { + nu_protocol::report_error_new( + engine_state, + &ShellError::GenericError( + "Deprecated command".into(), + "`extern-wrapped` is deprecated and will be removed in 0.88.".into(), + Some(call.head), + Some("Use `def --wrapped` instead".into()), + vec![], + ), + ); Ok(PipelineData::empty()) }