|
|
@ -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,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -117,8 +124,7 @@ pub fn bind_filter_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|