mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 18:08:36 +02:00
Allow polars schema --datatype-list
to be used without pipeline input (#15964)
# Description Fixes the issue of listing allowed datatypes when not being used with dataframe pipeline input. Co-authored-by: Jack Wright <jack.wright@nike.com>
This commit is contained in:
parent
7972aea530
commit
fb691c0da5
@ -25,7 +25,7 @@ impl PluginCommand for SchemaCmd {
|
|||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.switch("datatype-list", "creates a lazy dataframe", Some('l'))
|
.switch("datatype-list", "creates a lazy dataframe", Some('l'))
|
||||||
.input_output_type(Type::Custom("dataframe".into()), Type::record())
|
.input_output_type(Type::Any, Type::record())
|
||||||
.category(Category::Custom("dataframe".into()))
|
.category(Category::Custom("dataframe".into()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user