Showing full help when running the polars command (#12462)

Displays the full help message for all sub commands.

Co-authored-by: Jack Wright <jack.wright@disqo.com>
This commit is contained in:
Jack Wright 2024-04-10 05:26:33 -07:00 committed by GitHub
parent efc1cfa939
commit 81c61f3243
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,22 +30,13 @@ impl PluginCommand for PolarsCmd {
fn run( fn run(
&self, &self,
_plugin: &Self::Plugin, _plugin: &Self::Plugin,
_engine: &EngineInterface, engine: &EngineInterface,
call: &EvaluatedCall, call: &EvaluatedCall,
_input: PipelineData, _input: PipelineData,
) -> Result<PipelineData, LabeledError> { ) -> Result<PipelineData, LabeledError> {
// todo - find a replacmeent for get_full_help Ok(PipelineData::Value(
// Ok(Value::string( Value::string(engine.get_help()?, call.head),
// get_full_help( None,
// &PolarsCmd.signature(), ))
// &PolarsCmd.examples(),
// engine_state,
// stack,
// self.is_parser_keyword(),
// ),
// call.head,
// )
// .into_pipeline_data())
Ok(PipelineData::Value(Value::nothing(call.head), None))
} }
} }