diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index a248fc048..1fbfa602c 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -95,7 +95,7 @@ pub fn create_default_context(interactive: bool) -> Result &str { "describe" } @@ -28,11 +28,11 @@ impl WholeStreamCommand for What { args: CommandArgs, registry: &CommandRegistry, ) -> Result { - what(args, registry).await + describe(args, registry).await } } -pub async fn what( +pub async fn describe( args: CommandArgs, _registry: &CommandRegistry, ) -> Result { @@ -49,12 +49,12 @@ pub async fn what( #[cfg(test)] mod tests { - use super::What; + use super::Describe; #[test] fn examples_work_as_expected() { use crate::examples::test as test_examples; - test_examples(What {}) + test_examples(Describe {}) } }