|
|
|
@ -1,27 +1,27 @@
|
|
|
|
|
use nu_cmd_lang::*;
|
|
|
|
|
use nu_command::*;
|
|
|
|
|
use nu_protocol::engine::{EngineState, StateWorkingSet};
|
|
|
|
|
|
|
|
|
|
use crate::error::CrateResult;
|
|
|
|
|
use crate::{commands::PrintCommand, error::CrateResult};
|
|
|
|
|
|
|
|
|
|
macro_rules! bind_commands {
|
|
|
|
|
($engine_state:expr, $( $command:expr),* $(,)? ) => {
|
|
|
|
|
bind($engine_state, |working_set| {
|
|
|
|
|
$( working_set.add_decl(Box::new($command)); )*
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
($engine_state:expr, $( $command:expr),* $(,)? ) => {
|
|
|
|
|
bind($engine_state, |working_set| {
|
|
|
|
|
$( working_set.add_decl(Box::new($command)); )*
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands!(
|
|
|
|
|
engine_state,
|
|
|
|
|
Metadata,
|
|
|
|
|
Alias,
|
|
|
|
|
Ast,
|
|
|
|
|
Break,
|
|
|
|
|
Commandline,
|
|
|
|
|
Collect,
|
|
|
|
|
Const,
|
|
|
|
|
Continue,
|
|
|
|
|
Debug,
|
|
|
|
|
Def,
|
|
|
|
|
DefEnv,
|
|
|
|
|
Describe,
|
|
|
|
|
Do,
|
|
|
|
|
Echo,
|
|
|
|
@ -29,16 +29,20 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
ExportAlias,
|
|
|
|
|
ExportCommand,
|
|
|
|
|
ExportDef,
|
|
|
|
|
ExportDefEnv,
|
|
|
|
|
ExportExtern,
|
|
|
|
|
ExportUse,
|
|
|
|
|
Extern,
|
|
|
|
|
For,
|
|
|
|
|
Help,
|
|
|
|
|
HelpAliases,
|
|
|
|
|
HelpCommands,
|
|
|
|
|
HelpModules,
|
|
|
|
|
HelpExterns,
|
|
|
|
|
HelpOperators,
|
|
|
|
|
Hide,
|
|
|
|
|
HideEnv,
|
|
|
|
|
If,
|
|
|
|
|
PrintCommand,
|
|
|
|
|
Ignore,
|
|
|
|
|
Overlay,
|
|
|
|
|
OverlayUse,
|
|
|
|
@ -46,7 +50,8 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
OverlayNew,
|
|
|
|
|
OverlayHide,
|
|
|
|
|
Let,
|
|
|
|
|
Metadata,
|
|
|
|
|
Loop,
|
|
|
|
|
Match,
|
|
|
|
|
Module,
|
|
|
|
|
Mut,
|
|
|
|
|
Return,
|
|
|
|
@ -57,6 +62,23 @@ pub fn bind_core_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_debug_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands!(
|
|
|
|
|
engine_state,
|
|
|
|
|
Ast,
|
|
|
|
|
Debug,
|
|
|
|
|
DebugInfo,
|
|
|
|
|
Explain,
|
|
|
|
|
Inspect,
|
|
|
|
|
Metadata,
|
|
|
|
|
TimeIt,
|
|
|
|
|
View,
|
|
|
|
|
ViewFiles,
|
|
|
|
|
ViewSource,
|
|
|
|
|
ViewSpan,
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_chart_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands!(engine_state, Histogram)
|
|
|
|
|
}
|
|
|
|
@ -64,86 +86,84 @@ pub fn bind_chart_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_filter_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
All,
|
|
|
|
|
Any,
|
|
|
|
|
Append,
|
|
|
|
|
Collect,
|
|
|
|
|
Columns,
|
|
|
|
|
Compact,
|
|
|
|
|
Default,
|
|
|
|
|
Drop,
|
|
|
|
|
DropColumn,
|
|
|
|
|
DropNth,
|
|
|
|
|
Each,
|
|
|
|
|
EachWhile,
|
|
|
|
|
Empty,
|
|
|
|
|
Every,
|
|
|
|
|
Find,
|
|
|
|
|
First,
|
|
|
|
|
Flatten,
|
|
|
|
|
Get,
|
|
|
|
|
Group,
|
|
|
|
|
GroupBy,
|
|
|
|
|
Headers,
|
|
|
|
|
Insert,
|
|
|
|
|
SplitBy,
|
|
|
|
|
Take,
|
|
|
|
|
Merge,
|
|
|
|
|
Move,
|
|
|
|
|
TakeWhile,
|
|
|
|
|
TakeUntil,
|
|
|
|
|
Last,
|
|
|
|
|
Length,
|
|
|
|
|
Lines,
|
|
|
|
|
ParEach,
|
|
|
|
|
Prepend,
|
|
|
|
|
Range,
|
|
|
|
|
Reduce,
|
|
|
|
|
Reject,
|
|
|
|
|
Rename,
|
|
|
|
|
Reverse,
|
|
|
|
|
Roll,
|
|
|
|
|
RollDown,
|
|
|
|
|
RollUp,
|
|
|
|
|
RollLeft,
|
|
|
|
|
RollRight,
|
|
|
|
|
Rotate,
|
|
|
|
|
Select,
|
|
|
|
|
Shuffle,
|
|
|
|
|
Skip,
|
|
|
|
|
SkipUntil,
|
|
|
|
|
SkipWhile,
|
|
|
|
|
Sort,
|
|
|
|
|
SortBy,
|
|
|
|
|
SplitList,
|
|
|
|
|
Transpose,
|
|
|
|
|
Uniq,
|
|
|
|
|
Upsert,
|
|
|
|
|
Update,
|
|
|
|
|
UpdateCells,
|
|
|
|
|
Where,
|
|
|
|
|
Window,
|
|
|
|
|
Wrap,
|
|
|
|
|
Zip, }
|
|
|
|
|
All,
|
|
|
|
|
Any,
|
|
|
|
|
Append,
|
|
|
|
|
Columns,
|
|
|
|
|
Compact,
|
|
|
|
|
Default,
|
|
|
|
|
Drop,
|
|
|
|
|
DropColumn,
|
|
|
|
|
DropNth,
|
|
|
|
|
Each,
|
|
|
|
|
Empty,
|
|
|
|
|
Enumerate,
|
|
|
|
|
Every,
|
|
|
|
|
Filter,
|
|
|
|
|
Find,
|
|
|
|
|
First,
|
|
|
|
|
Flatten,
|
|
|
|
|
Get,
|
|
|
|
|
Group,
|
|
|
|
|
GroupBy,
|
|
|
|
|
Headers,
|
|
|
|
|
Insert,
|
|
|
|
|
Items,
|
|
|
|
|
Join,
|
|
|
|
|
SplitBy,
|
|
|
|
|
Take,
|
|
|
|
|
Merge,
|
|
|
|
|
Move,
|
|
|
|
|
TakeWhile,
|
|
|
|
|
TakeUntil,
|
|
|
|
|
Last,
|
|
|
|
|
Length,
|
|
|
|
|
Lines,
|
|
|
|
|
ParEach,
|
|
|
|
|
Prepend,
|
|
|
|
|
Range,
|
|
|
|
|
Reduce,
|
|
|
|
|
Reject,
|
|
|
|
|
Rename,
|
|
|
|
|
Reverse,
|
|
|
|
|
Select,
|
|
|
|
|
Shuffle,
|
|
|
|
|
Skip,
|
|
|
|
|
SkipUntil,
|
|
|
|
|
SkipWhile,
|
|
|
|
|
Sort,
|
|
|
|
|
SortBy,
|
|
|
|
|
SplitList,
|
|
|
|
|
Transpose,
|
|
|
|
|
Uniq,
|
|
|
|
|
UniqBy,
|
|
|
|
|
Upsert,
|
|
|
|
|
Update,
|
|
|
|
|
Values,
|
|
|
|
|
Where,
|
|
|
|
|
Window,
|
|
|
|
|
Wrap,
|
|
|
|
|
Zip,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_misc_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands!(engine_state, History, Tutor, HistorySession)
|
|
|
|
|
bind_commands!(engine_state, Tutor)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_path_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Path,
|
|
|
|
|
PathBasename,
|
|
|
|
|
PathDirname,
|
|
|
|
|
PathExists,
|
|
|
|
|
PathExpand,
|
|
|
|
|
PathJoin,
|
|
|
|
|
PathParse,
|
|
|
|
|
PathRelativeTo,
|
|
|
|
|
PathSplit,
|
|
|
|
|
PathType,
|
|
|
|
|
Path,
|
|
|
|
|
PathBasename,
|
|
|
|
|
PathDirname,
|
|
|
|
|
PathExists,
|
|
|
|
|
PathExpand,
|
|
|
|
|
PathJoin,
|
|
|
|
|
PathParse,
|
|
|
|
|
PathRelativeTo,
|
|
|
|
|
PathSplit,
|
|
|
|
|
PathType,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -151,7 +171,6 @@ pub fn bind_path_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Benchmark,
|
|
|
|
|
Complete,
|
|
|
|
|
External,
|
|
|
|
|
NuCheck,
|
|
|
|
@ -166,7 +185,6 @@ pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Benchmark,
|
|
|
|
|
Complete,
|
|
|
|
|
External,
|
|
|
|
|
NuCheck,
|
|
|
|
@ -181,7 +199,6 @@ pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Benchmark,
|
|
|
|
|
Complete,
|
|
|
|
|
External,
|
|
|
|
|
NuCheck,
|
|
|
|
@ -194,60 +211,34 @@ pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_string_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Char,
|
|
|
|
|
Decode,
|
|
|
|
|
Encode,
|
|
|
|
|
DecodeBase64,
|
|
|
|
|
EncodeBase64,
|
|
|
|
|
DetectColumns,
|
|
|
|
|
Format,
|
|
|
|
|
FileSize,
|
|
|
|
|
Parse,
|
|
|
|
|
Size,
|
|
|
|
|
Split,
|
|
|
|
|
SplitChars,
|
|
|
|
|
SplitColumn,
|
|
|
|
|
SplitRow,
|
|
|
|
|
SplitWords,
|
|
|
|
|
Str,
|
|
|
|
|
StrCamelCase,
|
|
|
|
|
StrCapitalize,
|
|
|
|
|
StrCollect,
|
|
|
|
|
StrContains,
|
|
|
|
|
StrDistance,
|
|
|
|
|
StrDowncase,
|
|
|
|
|
StrEndswith,
|
|
|
|
|
StrJoin,
|
|
|
|
|
StrReplace,
|
|
|
|
|
StrIndexOf,
|
|
|
|
|
StrKebabCase,
|
|
|
|
|
StrLength,
|
|
|
|
|
StrLpad,
|
|
|
|
|
StrPascalCase,
|
|
|
|
|
StrReverse,
|
|
|
|
|
StrRpad,
|
|
|
|
|
StrScreamingSnakeCase,
|
|
|
|
|
StrSnakeCase,
|
|
|
|
|
StrStartsWith,
|
|
|
|
|
StrSubstring,
|
|
|
|
|
StrTrim,
|
|
|
|
|
StrTitleCase,
|
|
|
|
|
StrUpcase,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_bit_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Bits,
|
|
|
|
|
BitsAnd,
|
|
|
|
|
BitsNot,
|
|
|
|
|
BitsOr,
|
|
|
|
|
BitsXor,
|
|
|
|
|
BitsRotateLeft,
|
|
|
|
|
BitsRotateRight,
|
|
|
|
|
BitsShiftLeft,
|
|
|
|
|
BitsShiftRight,
|
|
|
|
|
Char,
|
|
|
|
|
Decode,
|
|
|
|
|
Encode,
|
|
|
|
|
DecodeBase64,
|
|
|
|
|
EncodeBase64,
|
|
|
|
|
DetectColumns,
|
|
|
|
|
Format,
|
|
|
|
|
Parse,
|
|
|
|
|
Split,
|
|
|
|
|
SplitChars,
|
|
|
|
|
SplitColumn,
|
|
|
|
|
SplitRow,
|
|
|
|
|
SplitWords,
|
|
|
|
|
Str,
|
|
|
|
|
StrCapitalize,
|
|
|
|
|
StrContains,
|
|
|
|
|
StrDistance,
|
|
|
|
|
StrDowncase,
|
|
|
|
|
StrEndswith,
|
|
|
|
|
StrJoin,
|
|
|
|
|
StrReplace,
|
|
|
|
|
StrIndexOf,
|
|
|
|
|
StrLength,
|
|
|
|
|
StrReverse,
|
|
|
|
|
StrStartsWith,
|
|
|
|
|
StrSubstring,
|
|
|
|
|
StrTrim,
|
|
|
|
|
StrUpcase
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -273,10 +264,10 @@ pub fn bind_file_system_commands(engine_state: &mut EngineState) -> CrateResult<
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Cd,
|
|
|
|
|
Cp,
|
|
|
|
|
UCp,
|
|
|
|
|
Ls,
|
|
|
|
|
Mkdir,
|
|
|
|
|
Mv,
|
|
|
|
|
UMv,
|
|
|
|
|
Open,
|
|
|
|
|
Rm,
|
|
|
|
|
Save,
|
|
|
|
@ -290,16 +281,10 @@ pub fn bind_platform_commands(engine_state: &mut EngineState) -> CrateResult<()>
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Ansi,
|
|
|
|
|
AnsiGradient,
|
|
|
|
|
AnsiStrip,
|
|
|
|
|
Clear,
|
|
|
|
|
Du,
|
|
|
|
|
KeybindingsDefault,
|
|
|
|
|
Input,
|
|
|
|
|
KeybindingsListen,
|
|
|
|
|
Keybindings,
|
|
|
|
|
Kill,
|
|
|
|
|
KeybindingsList,
|
|
|
|
|
Sleep,
|
|
|
|
|
TermSize,
|
|
|
|
|
}
|
|
|
|
@ -322,50 +307,38 @@ pub fn bind_date_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_shell_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Enter,
|
|
|
|
|
Exit,
|
|
|
|
|
GotoShell,
|
|
|
|
|
NextShell,
|
|
|
|
|
PrevShell,
|
|
|
|
|
Shells,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_format_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
From,
|
|
|
|
|
FromCsv,
|
|
|
|
|
FromEml,
|
|
|
|
|
FromIcs,
|
|
|
|
|
FromIni,
|
|
|
|
|
FromJson,
|
|
|
|
|
FromNuon,
|
|
|
|
|
FromOds,
|
|
|
|
|
FromSsv,
|
|
|
|
|
FromToml,
|
|
|
|
|
FromTsv,
|
|
|
|
|
FromUrl,
|
|
|
|
|
FromVcf,
|
|
|
|
|
FromXlsx,
|
|
|
|
|
FromXml,
|
|
|
|
|
FromYaml,
|
|
|
|
|
FromYml,
|
|
|
|
|
To,
|
|
|
|
|
ToCsv,
|
|
|
|
|
ToHtml,
|
|
|
|
|
ToJson,
|
|
|
|
|
ToMd,
|
|
|
|
|
ToNuon,
|
|
|
|
|
ToText,
|
|
|
|
|
ToToml,
|
|
|
|
|
ToTsv,
|
|
|
|
|
Touch,
|
|
|
|
|
Use,
|
|
|
|
|
Upsert,
|
|
|
|
|
Where,
|
|
|
|
|
ToXml,
|
|
|
|
|
ToYaml,
|
|
|
|
|
From,
|
|
|
|
|
FromCsv,
|
|
|
|
|
FromJson,
|
|
|
|
|
FromNuon,
|
|
|
|
|
FromOds,
|
|
|
|
|
FromSsv,
|
|
|
|
|
FromToml,
|
|
|
|
|
FromTsv,
|
|
|
|
|
FromXlsx,
|
|
|
|
|
FromXml,
|
|
|
|
|
FromYaml,
|
|
|
|
|
FromYml,
|
|
|
|
|
To,
|
|
|
|
|
ToCsv,
|
|
|
|
|
ToJson,
|
|
|
|
|
ToMd,
|
|
|
|
|
ToNuon,
|
|
|
|
|
ToText,
|
|
|
|
|
ToToml,
|
|
|
|
|
ToTsv,
|
|
|
|
|
Touch,
|
|
|
|
|
Upsert,
|
|
|
|
|
Where,
|
|
|
|
|
ToXml,
|
|
|
|
|
ToYaml,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -380,12 +353,11 @@ pub fn bind_viewer_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_conversion_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Fmt,
|
|
|
|
|
Fill,
|
|
|
|
|
Into,
|
|
|
|
|
IntoBool,
|
|
|
|
|
IntoBinary,
|
|
|
|
|
IntoDatetime,
|
|
|
|
|
IntoDecimal,
|
|
|
|
|
IntoDuration,
|
|
|
|
|
IntoFilesize,
|
|
|
|
|
IntoInt,
|
|
|
|
@ -397,12 +369,11 @@ pub fn bind_conversion_commands(engine_state: &mut EngineState) -> CrateResult<(
|
|
|
|
|
pub fn bind_environment_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Env,
|
|
|
|
|
ExportEnv,
|
|
|
|
|
LetEnv,
|
|
|
|
|
LoadEnv,
|
|
|
|
|
SourceEnv,
|
|
|
|
|
WithEnv,
|
|
|
|
|
ExportEnv,
|
|
|
|
|
LetEnv,
|
|
|
|
|
LoadEnv,
|
|
|
|
|
SourceEnv,
|
|
|
|
|
WithEnv,
|
|
|
|
|
// nu config commands have been removed as editing isn't possible
|
|
|
|
|
// in this environment
|
|
|
|
|
}
|
|
|
|
@ -411,30 +382,41 @@ pub fn bind_environment_commands(engine_state: &mut EngineState) -> CrateResult<
|
|
|
|
|
pub fn bind_math_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Math,
|
|
|
|
|
MathAbs,
|
|
|
|
|
MathAvg,
|
|
|
|
|
MathCeil,
|
|
|
|
|
MathFloor,
|
|
|
|
|
MathMax,
|
|
|
|
|
MathMedian,
|
|
|
|
|
MathMin,
|
|
|
|
|
MathMode,
|
|
|
|
|
MathProduct,
|
|
|
|
|
MathRound,
|
|
|
|
|
MathSqrt,
|
|
|
|
|
MathStddev,
|
|
|
|
|
MathSum,
|
|
|
|
|
MathVariance,
|
|
|
|
|
Math,
|
|
|
|
|
MathAbs,
|
|
|
|
|
MathAvg,
|
|
|
|
|
MathCeil,
|
|
|
|
|
MathFloor,
|
|
|
|
|
MathMax,
|
|
|
|
|
MathMedian,
|
|
|
|
|
MathMin,
|
|
|
|
|
MathMode,
|
|
|
|
|
MathProduct,
|
|
|
|
|
MathRound,
|
|
|
|
|
MathSqrt,
|
|
|
|
|
MathStddev,
|
|
|
|
|
MathSum,
|
|
|
|
|
MathVariance,
|
|
|
|
|
MathLog,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bind_network_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
Url,
|
|
|
|
|
UrlParse,
|
|
|
|
|
Port,
|
|
|
|
|
Http,
|
|
|
|
|
HttpDelete,
|
|
|
|
|
HttpGet,
|
|
|
|
|
HttpHead,
|
|
|
|
|
HttpPatch,
|
|
|
|
|
HttpPost,
|
|
|
|
|
HttpPut,
|
|
|
|
|
Url,
|
|
|
|
|
UrlBuildQuery,
|
|
|
|
|
UrlEncode,
|
|
|
|
|
UrlJoin,
|
|
|
|
|
UrlParse,
|
|
|
|
|
Port,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -444,9 +426,7 @@ pub fn bind_random_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
Random,
|
|
|
|
|
RandomBool,
|
|
|
|
|
RandomChars,
|
|
|
|
|
RandomDecimal,
|
|
|
|
|
RandomDice,
|
|
|
|
|
RandomInteger,
|
|
|
|
|
RandomUuid,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -473,7 +453,6 @@ pub fn bind_hash_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
pub fn bind_experimental_commands(engine_state: &mut EngineState) -> CrateResult<()> {
|
|
|
|
|
bind_commands! {
|
|
|
|
|
engine_state,
|
|
|
|
|
ViewSource,
|
|
|
|
|
IsAdmin,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|