From 81c61f3243f2e23ca8d075a1d3f56b8a6ac8099c Mon Sep 17 00:00:00 2001 From: Jack Wright <56345+ayax79@users.noreply.github.com> Date: Wed, 10 Apr 2024 05:26:33 -0700 Subject: [PATCH] Showing full help when running the polars command (#12462) Displays the full help message for all sub commands. Co-authored-by: Jack Wright --- crates/nu_plugin_polars/src/dataframe/stub.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/crates/nu_plugin_polars/src/dataframe/stub.rs b/crates/nu_plugin_polars/src/dataframe/stub.rs index 7b50d23e4e..160069f04c 100644 --- a/crates/nu_plugin_polars/src/dataframe/stub.rs +++ b/crates/nu_plugin_polars/src/dataframe/stub.rs @@ -30,22 +30,13 @@ impl PluginCommand for PolarsCmd { fn run( &self, _plugin: &Self::Plugin, - _engine: &EngineInterface, + engine: &EngineInterface, call: &EvaluatedCall, _input: PipelineData, ) -> Result { - // todo - find a replacmeent for get_full_help - // Ok(Value::string( - // get_full_help( - // &PolarsCmd.signature(), - // &PolarsCmd.examples(), - // engine_state, - // stack, - // self.is_parser_keyword(), - // ), - // call.head, - // ) - // .into_pipeline_data()) - Ok(PipelineData::Value(Value::nothing(call.head), None)) + Ok(PipelineData::Value( + Value::string(engine.get_help()?, call.head), + None, + )) } }