|
|
@ -16,7 +16,9 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
engine_state,
|
|
|
|
engine_state,
|
|
|
|
Alias,
|
|
|
|
Alias,
|
|
|
|
Ast,
|
|
|
|
Ast,
|
|
|
|
|
|
|
|
Break,
|
|
|
|
Commandline,
|
|
|
|
Commandline,
|
|
|
|
|
|
|
|
Continue,
|
|
|
|
Debug,
|
|
|
|
Debug,
|
|
|
|
Def,
|
|
|
|
Def,
|
|
|
|
DefEnv,
|
|
|
|
DefEnv,
|
|
|
@ -33,6 +35,7 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
Extern,
|
|
|
|
Extern,
|
|
|
|
For,
|
|
|
|
For,
|
|
|
|
Help,
|
|
|
|
Help,
|
|
|
|
|
|
|
|
HelpOperators,
|
|
|
|
Hide,
|
|
|
|
Hide,
|
|
|
|
HideEnv,
|
|
|
|
HideEnv,
|
|
|
|
If,
|
|
|
|
If,
|
|
|
@ -45,8 +48,12 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
Let,
|
|
|
|
Let,
|
|
|
|
Metadata,
|
|
|
|
Metadata,
|
|
|
|
Module,
|
|
|
|
Module,
|
|
|
|
|
|
|
|
Mut,
|
|
|
|
|
|
|
|
Return,
|
|
|
|
|
|
|
|
Try,
|
|
|
|
Use,
|
|
|
|
Use,
|
|
|
|
Version,
|
|
|
|
Version,
|
|
|
|
|
|
|
|
While,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -56,69 +63,68 @@ pub fn bind_chart_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
|
|
|
|
|
|
|
pub fn bind_filter_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
pub fn bind_filter_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
bind_commands! {
|
|
|
|
bind_commands! {
|
|
|
|
engine_state,
|
|
|
|
engine_state,
|
|
|
|
All,
|
|
|
|
All,
|
|
|
|
Any,
|
|
|
|
Any,
|
|
|
|
Append,
|
|
|
|
Append,
|
|
|
|
Collect,
|
|
|
|
Collect,
|
|
|
|
Columns,
|
|
|
|
Columns,
|
|
|
|
Compact,
|
|
|
|
Compact,
|
|
|
|
Default,
|
|
|
|
Default,
|
|
|
|
Drop,
|
|
|
|
Drop,
|
|
|
|
DropColumn,
|
|
|
|
DropColumn,
|
|
|
|
DropNth,
|
|
|
|
DropNth,
|
|
|
|
Each,
|
|
|
|
Each,
|
|
|
|
EachWhile,
|
|
|
|
EachWhile,
|
|
|
|
Empty,
|
|
|
|
Empty,
|
|
|
|
Every,
|
|
|
|
Every,
|
|
|
|
Find,
|
|
|
|
Find,
|
|
|
|
First,
|
|
|
|
First,
|
|
|
|
Flatten,
|
|
|
|
Flatten,
|
|
|
|
Get,
|
|
|
|
Get,
|
|
|
|
Group,
|
|
|
|
Group,
|
|
|
|
GroupBy,
|
|
|
|
GroupBy,
|
|
|
|
Headers,
|
|
|
|
Headers,
|
|
|
|
Insert,
|
|
|
|
Insert,
|
|
|
|
SplitBy,
|
|
|
|
SplitBy,
|
|
|
|
Take,
|
|
|
|
Take,
|
|
|
|
Merge,
|
|
|
|
Merge,
|
|
|
|
Move,
|
|
|
|
Move,
|
|
|
|
TakeWhile,
|
|
|
|
TakeWhile,
|
|
|
|
TakeUntil,
|
|
|
|
TakeUntil,
|
|
|
|
Last,
|
|
|
|
Last,
|
|
|
|
Length,
|
|
|
|
Length,
|
|
|
|
Lines,
|
|
|
|
Lines,
|
|
|
|
ParEach,
|
|
|
|
ParEach,
|
|
|
|
Prepend,
|
|
|
|
Prepend,
|
|
|
|
Range,
|
|
|
|
Range,
|
|
|
|
Reduce,
|
|
|
|
Reduce,
|
|
|
|
Reject,
|
|
|
|
Reject,
|
|
|
|
Rename,
|
|
|
|
Rename,
|
|
|
|
Reverse,
|
|
|
|
Reverse,
|
|
|
|
Roll,
|
|
|
|
Roll,
|
|
|
|
RollDown,
|
|
|
|
RollDown,
|
|
|
|
RollUp,
|
|
|
|
RollUp,
|
|
|
|
RollLeft,
|
|
|
|
RollLeft,
|
|
|
|
RollRight,
|
|
|
|
RollRight,
|
|
|
|
Rotate,
|
|
|
|
Rotate,
|
|
|
|
Select,
|
|
|
|
Select,
|
|
|
|
Shuffle,
|
|
|
|
Shuffle,
|
|
|
|
Skip,
|
|
|
|
Skip,
|
|
|
|
SkipUntil,
|
|
|
|
SkipUntil,
|
|
|
|
SkipWhile,
|
|
|
|
SkipWhile,
|
|
|
|
Sort,
|
|
|
|
Sort,
|
|
|
|
SortBy,
|
|
|
|
SortBy,
|
|
|
|
SplitList,
|
|
|
|
SplitList,
|
|
|
|
Transpose,
|
|
|
|
Transpose,
|
|
|
|
Uniq,
|
|
|
|
Uniq,
|
|
|
|
Upsert,
|
|
|
|
Upsert,
|
|
|
|
Update,
|
|
|
|
Update,
|
|
|
|
UpdateCells,
|
|
|
|
UpdateCells,
|
|
|
|
Where,
|
|
|
|
Where,
|
|
|
|
Window,
|
|
|
|
Window,
|
|
|
|
Wrap,
|
|
|
|
Wrap,
|
|
|
|
Zip,
|
|
|
|
Zip, }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn bind_misc_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
pub fn bind_misc_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
@ -151,13 +157,13 @@ pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
NuCheck,
|
|
|
|
NuCheck,
|
|
|
|
Sys,
|
|
|
|
Sys,
|
|
|
|
Ps,
|
|
|
|
Ps,
|
|
|
|
|
|
|
|
Which,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub fn bind_string_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
pub fn bind_string_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
bind_commands! {
|
|
|
|
bind_commands! {
|
|
|
|
engine_state,
|
|
|
|
engine_state,
|
|
|
|
BuildString,
|
|
|
|
|
|
|
|
Char,
|
|
|
|
Char,
|
|
|
|
Decode,
|
|
|
|
Decode,
|
|
|
|
Encode,
|
|
|
|
Encode,
|
|
|
@ -196,7 +202,7 @@ pub fn bind_string_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
StrSubstring,
|
|
|
|
StrSubstring,
|
|
|
|
StrTrim,
|
|
|
|
StrTrim,
|
|
|
|
StrTitleCase,
|
|
|
|
StrTitleCase,
|
|
|
|
StrUpcase
|
|
|
|
StrUpcase,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -324,7 +330,6 @@ pub fn bind_format_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
ToText,
|
|
|
|
ToText,
|
|
|
|
ToToml,
|
|
|
|
ToToml,
|
|
|
|
ToTsv,
|
|
|
|
ToTsv,
|
|
|
|
ToCsv,
|
|
|
|
|
|
|
|
Touch,
|
|
|
|
Touch,
|
|
|
|
Use,
|
|
|
|
Use,
|
|
|
|
Upsert,
|
|
|
|
Upsert,
|
|
|
@ -355,6 +360,7 @@ pub fn bind_conversion_commands(engine_state: &mut EngineState) -> CrateResult<(
|
|
|
|
IntoDuration,
|
|
|
|
IntoDuration,
|
|
|
|
IntoFilesize,
|
|
|
|
IntoFilesize,
|
|
|
|
IntoInt,
|
|
|
|
IntoInt,
|
|
|
|
|
|
|
|
IntoRecord,
|
|
|
|
IntoString,
|
|
|
|
IntoString,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -401,10 +407,7 @@ pub fn bind_network_commands(engine_state: &mut EngineState) -> CrateResult<()>
|
|
|
|
Fetch,
|
|
|
|
Fetch,
|
|
|
|
Post,
|
|
|
|
Post,
|
|
|
|
Url,
|
|
|
|
Url,
|
|
|
|
UrlHost,
|
|
|
|
UrlParse,
|
|
|
|
UrlPath,
|
|
|
|
|
|
|
|
UrlQuery,
|
|
|
|
|
|
|
|
UrlScheme,
|
|
|
|
|
|
|
|
Port,
|
|
|
|
Port,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|