2021-11-26 08:00:57 +00:00
|
|
|
use nu_protocol::engine::{EngineState, StateWorkingSet};
|
2021-09-02 22:58:15 +00:00
|
|
|
|
2022-01-04 22:30:34 +00:00
|
|
|
use std::path::Path;
|
|
|
|
|
2021-10-02 02:59:11 +00:00
|
|
|
use crate::*;
|
2021-09-02 22:58:15 +00:00
|
|
|
|
2022-01-04 22:30:34 +00:00
|
|
|
pub fn create_default_context(cwd: impl AsRef<Path>) -> EngineState {
|
2021-10-25 06:31:39 +00:00
|
|
|
let mut engine_state = EngineState::new();
|
2021-10-28 04:13:10 +00:00
|
|
|
|
2021-09-02 22:58:15 +00:00
|
|
|
let delta = {
|
2021-10-25 06:31:39 +00:00
|
|
|
let mut working_set = StateWorkingSet::new(&engine_state);
|
2021-09-02 22:58:15 +00:00
|
|
|
|
2021-10-10 04:13:15 +00:00
|
|
|
macro_rules! bind_command {
|
2021-12-10 23:14:28 +00:00
|
|
|
( $( $command:expr ),* $(,)? ) => {
|
2021-10-10 04:13:15 +00:00
|
|
|
$( working_set.add_decl(Box::new($command)); )*
|
|
|
|
};
|
|
|
|
}
|
2021-09-23 19:03:08 +00:00
|
|
|
|
2021-11-28 19:35:02 +00:00
|
|
|
// If there are commands that have the same name as default declarations,
|
|
|
|
// they have to be registered before the main declarations. This helps to make
|
|
|
|
// them only accessible if the correct input value category is used with the
|
|
|
|
// declaration
|
|
|
|
#[cfg(feature = "dataframe")]
|
2021-12-06 04:09:49 +00:00
|
|
|
add_dataframe_decls(&mut working_set);
|
2021-11-28 19:35:02 +00:00
|
|
|
|
2022-04-24 09:29:21 +00:00
|
|
|
// Database-related
|
|
|
|
// Adds all related commands to query databases
|
|
|
|
#[cfg(feature = "database")]
|
|
|
|
add_database_decls(&mut working_set);
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// Core
|
|
|
|
bind_command! {
|
2021-10-10 20:24:54 +00:00
|
|
|
Alias,
|
2021-11-19 05:00:29 +00:00
|
|
|
Debug,
|
2021-10-10 20:24:54 +00:00
|
|
|
Def,
|
2022-01-29 20:45:46 +00:00
|
|
|
DefEnv,
|
2021-11-19 05:00:29 +00:00
|
|
|
Describe,
|
2021-10-10 20:24:54 +00:00
|
|
|
Do,
|
2021-11-01 08:12:48 +00:00
|
|
|
Echo,
|
2022-02-05 14:39:51 +00:00
|
|
|
ErrorMake,
|
2022-03-19 18:58:01 +00:00
|
|
|
ExportAlias,
|
2021-11-15 23:16:06 +00:00
|
|
|
ExportCommand,
|
2021-10-10 20:24:54 +00:00
|
|
|
ExportDef,
|
2022-01-29 20:45:46 +00:00
|
|
|
ExportDefEnv,
|
2021-11-15 23:16:06 +00:00
|
|
|
ExportEnv,
|
2022-03-19 18:58:01 +00:00
|
|
|
ExportExtern,
|
2022-02-11 18:38:10 +00:00
|
|
|
Extern,
|
2021-10-10 20:24:54 +00:00
|
|
|
For,
|
|
|
|
Help,
|
|
|
|
Hide,
|
|
|
|
If,
|
2021-12-30 04:54:33 +00:00
|
|
|
Ignore,
|
2022-05-07 19:39:22 +00:00
|
|
|
Overlay,
|
|
|
|
OverlayAdd,
|
|
|
|
OverlayList,
|
2022-05-26 14:47:04 +00:00
|
|
|
OverlayNew,
|
2022-05-07 19:39:22 +00:00
|
|
|
OverlayRemove,
|
2021-12-11 03:07:39 +00:00
|
|
|
Let,
|
2021-12-24 00:16:50 +00:00
|
|
|
Metadata,
|
2021-12-11 03:07:39 +00:00
|
|
|
Module,
|
|
|
|
Source,
|
|
|
|
Use,
|
2021-12-11 20:08:17 +00:00
|
|
|
Version,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
2022-05-13 11:48:47 +00:00
|
|
|
// Charts
|
|
|
|
bind_command! {
|
|
|
|
Histogram
|
|
|
|
}
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// Filters
|
|
|
|
bind_command! {
|
|
|
|
All,
|
|
|
|
Any,
|
|
|
|
Append,
|
|
|
|
Collect,
|
2021-12-18 18:14:28 +00:00
|
|
|
Columns,
|
2021-12-23 03:08:39 +00:00
|
|
|
Compact,
|
2022-01-25 15:02:15 +00:00
|
|
|
Default,
|
2021-12-11 03:07:39 +00:00
|
|
|
Drop,
|
2021-12-14 19:54:27 +00:00
|
|
|
DropColumn,
|
2021-12-15 12:26:15 +00:00
|
|
|
DropNth,
|
2021-12-11 03:07:39 +00:00
|
|
|
Each,
|
2022-06-14 14:16:31 +00:00
|
|
|
EachWhile,
|
2021-12-19 19:11:57 +00:00
|
|
|
Empty,
|
2021-12-30 23:41:18 +00:00
|
|
|
Every,
|
2022-01-23 22:32:02 +00:00
|
|
|
Find,
|
2021-12-11 03:07:39 +00:00
|
|
|
First,
|
2021-12-17 20:44:51 +00:00
|
|
|
Flatten,
|
2021-12-11 03:07:39 +00:00
|
|
|
Get,
|
2022-03-07 01:01:29 +00:00
|
|
|
Group,
|
2022-01-21 20:28:21 +00:00
|
|
|
GroupBy,
|
2022-02-12 02:06:49 +00:00
|
|
|
Headers,
|
2022-03-17 17:55:02 +00:00
|
|
|
Insert,
|
2022-01-30 23:29:21 +00:00
|
|
|
SplitBy,
|
2022-04-07 20:49:28 +00:00
|
|
|
Take,
|
2022-01-21 23:50:26 +00:00
|
|
|
Merge,
|
2022-01-24 19:43:38 +00:00
|
|
|
Move,
|
2022-04-07 20:49:28 +00:00
|
|
|
TakeWhile,
|
|
|
|
TakeUntil,
|
2021-10-26 18:29:00 +00:00
|
|
|
Last,
|
2021-10-10 20:24:54 +00:00
|
|
|
Length,
|
|
|
|
Lines,
|
2021-10-26 01:30:53 +00:00
|
|
|
ParEach,
|
2021-12-07 08:46:21 +00:00
|
|
|
Prepend,
|
2021-10-30 17:51:20 +00:00
|
|
|
Range,
|
2022-01-08 00:40:40 +00:00
|
|
|
Reduce,
|
2021-12-05 03:09:45 +00:00
|
|
|
Reject,
|
2022-01-29 10:26:47 +00:00
|
|
|
Rename,
|
2021-11-07 18:18:27 +00:00
|
|
|
Reverse,
|
2022-02-12 11:11:54 +00:00
|
|
|
Roll,
|
|
|
|
RollDown,
|
|
|
|
RollUp,
|
|
|
|
RollLeft,
|
|
|
|
RollRight,
|
2022-01-29 20:47:28 +00:00
|
|
|
Rotate,
|
2021-10-10 20:24:54 +00:00
|
|
|
Select,
|
2021-11-07 01:19:57 +00:00
|
|
|
Shuffle,
|
2021-11-29 06:52:23 +00:00
|
|
|
Skip,
|
|
|
|
SkipUntil,
|
|
|
|
SkipWhile,
|
2022-03-31 22:43:16 +00:00
|
|
|
Sort,
|
2022-01-22 20:49:50 +00:00
|
|
|
SortBy,
|
2022-01-21 20:28:21 +00:00
|
|
|
Transpose,
|
2021-12-11 03:07:39 +00:00
|
|
|
Uniq,
|
2022-03-17 00:13:34 +00:00
|
|
|
Upsert,
|
2022-03-17 17:55:02 +00:00
|
|
|
Update,
|
2022-01-30 21:41:05 +00:00
|
|
|
UpdateCells,
|
2021-12-11 03:07:39 +00:00
|
|
|
Where,
|
2022-03-07 01:01:29 +00:00
|
|
|
Window,
|
2021-12-11 03:07:39 +00:00
|
|
|
Wrap,
|
|
|
|
Zip,
|
|
|
|
};
|
|
|
|
|
2022-06-16 16:58:38 +00:00
|
|
|
// Misc
|
|
|
|
bind_command! {
|
|
|
|
History,
|
|
|
|
Tutor,
|
|
|
|
};
|
|
|
|
|
2021-12-13 01:47:14 +00:00
|
|
|
// Path
|
|
|
|
bind_command! {
|
|
|
|
Path,
|
|
|
|
PathBasename,
|
|
|
|
PathDirname,
|
|
|
|
PathExists,
|
|
|
|
PathExpand,
|
|
|
|
PathJoin,
|
|
|
|
PathParse,
|
|
|
|
PathRelativeTo,
|
|
|
|
PathSplit,
|
|
|
|
PathType,
|
|
|
|
};
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// System
|
|
|
|
bind_command! {
|
|
|
|
Benchmark,
|
2022-02-25 19:51:31 +00:00
|
|
|
Complete,
|
2022-01-25 17:27:35 +00:00
|
|
|
Exec,
|
2021-12-11 03:07:39 +00:00
|
|
|
External,
|
2022-06-26 11:53:06 +00:00
|
|
|
NuCheck,
|
2021-12-11 03:07:39 +00:00
|
|
|
Ps,
|
|
|
|
Sys,
|
|
|
|
};
|
|
|
|
|
2022-03-29 11:10:43 +00:00
|
|
|
#[cfg(feature = "which-support")]
|
2022-01-20 18:02:53 +00:00
|
|
|
bind_command! { Which };
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// Strings
|
|
|
|
bind_command! {
|
|
|
|
BuildString,
|
2021-12-15 23:08:12 +00:00
|
|
|
Char,
|
2021-12-24 07:22:11 +00:00
|
|
|
Decode,
|
2022-06-25 21:35:23 +00:00
|
|
|
Encode,
|
|
|
|
DecodeBase64,
|
|
|
|
EncodeBase64,
|
2022-01-30 12:52:24 +00:00
|
|
|
DetectColumns,
|
2021-12-11 03:07:39 +00:00
|
|
|
Format,
|
2022-05-10 11:35:14 +00:00
|
|
|
FileSize,
|
2021-12-11 03:07:39 +00:00
|
|
|
Parse,
|
|
|
|
Size,
|
2021-10-10 20:24:54 +00:00
|
|
|
Split,
|
|
|
|
SplitChars,
|
|
|
|
SplitColumn,
|
|
|
|
SplitRow,
|
2021-11-09 01:59:44 +00:00
|
|
|
Str,
|
|
|
|
StrCamelCase,
|
2021-11-09 07:40:56 +00:00
|
|
|
StrCapitalize,
|
2021-11-09 01:59:44 +00:00
|
|
|
StrCollect,
|
2021-11-09 20:16:53 +00:00
|
|
|
StrContains,
|
|
|
|
StrDowncase,
|
2021-11-10 00:51:55 +00:00
|
|
|
StrEndswith,
|
2022-04-07 13:41:09 +00:00
|
|
|
StrReplace,
|
2021-12-11 03:07:39 +00:00
|
|
|
StrIndexOf,
|
2021-11-09 01:59:44 +00:00
|
|
|
StrKebabCase,
|
2021-12-11 03:07:39 +00:00
|
|
|
StrLength,
|
|
|
|
StrLpad,
|
2021-11-09 01:59:44 +00:00
|
|
|
StrPascalCase,
|
2021-12-11 03:07:39 +00:00
|
|
|
StrReverse,
|
|
|
|
StrRpad,
|
2021-11-09 01:59:44 +00:00
|
|
|
StrScreamingSnakeCase,
|
|
|
|
StrSnakeCase,
|
2021-11-15 23:16:56 +00:00
|
|
|
StrStartsWith,
|
2021-12-01 06:42:57 +00:00
|
|
|
StrSubstring,
|
2021-12-02 04:38:44 +00:00
|
|
|
StrTrim,
|
2022-05-18 13:57:20 +00:00
|
|
|
StrTitleCase,
|
2021-12-17 17:40:47 +00:00
|
|
|
StrUpcase
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
2022-07-04 10:51:07 +00:00
|
|
|
// Bytes
|
|
|
|
bind_command! {
|
2022-07-06 04:46:56 +00:00
|
|
|
Bytes,
|
2022-07-05 11:42:01 +00:00
|
|
|
BytesLen,
|
2022-07-06 13:25:37 +00:00
|
|
|
BytesStartsWith,
|
|
|
|
BytesEndsWith,
|
|
|
|
BytesReverse,
|
|
|
|
BytesReplace,
|
2022-07-09 02:42:31 +00:00
|
|
|
BytesAdd,
|
|
|
|
BytesAt,
|
|
|
|
BytesIndexOf,
|
2022-07-11 11:26:00 +00:00
|
|
|
BytesCollect,
|
|
|
|
BytesRemove,
|
|
|
|
BytesBuild,
|
2022-07-04 10:51:07 +00:00
|
|
|
}
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// FileSystem
|
|
|
|
bind_command! {
|
|
|
|
Cd,
|
|
|
|
Cp,
|
|
|
|
Ls,
|
|
|
|
Mkdir,
|
|
|
|
Mv,
|
2021-12-24 19:24:55 +00:00
|
|
|
Open,
|
2021-12-11 03:07:39 +00:00
|
|
|
Rm,
|
2022-01-15 20:44:20 +00:00
|
|
|
Save,
|
2021-12-11 03:07:39 +00:00
|
|
|
Touch,
|
2022-04-04 20:45:01 +00:00
|
|
|
Glob,
|
2022-04-28 14:26:34 +00:00
|
|
|
Watch,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Platform
|
|
|
|
bind_command! {
|
2021-12-17 17:40:47 +00:00
|
|
|
Ansi,
|
|
|
|
AnsiGradient,
|
2021-12-17 20:32:03 +00:00
|
|
|
AnsiStrip,
|
2021-12-11 03:07:39 +00:00
|
|
|
Clear,
|
2022-06-15 18:11:26 +00:00
|
|
|
Du,
|
2022-02-05 17:35:02 +00:00
|
|
|
KeybindingsDefault,
|
2022-01-16 04:28:28 +00:00
|
|
|
Input,
|
2022-02-05 17:35:02 +00:00
|
|
|
KeybindingsListen,
|
2022-02-04 06:47:18 +00:00
|
|
|
Keybindings,
|
2021-12-11 03:07:39 +00:00
|
|
|
Kill,
|
2022-02-05 17:35:02 +00:00
|
|
|
KeybindingsList,
|
2021-12-11 03:07:39 +00:00
|
|
|
Sleep,
|
2022-01-21 03:31:33 +00:00
|
|
|
TermSize,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Date
|
|
|
|
bind_command! {
|
|
|
|
Date,
|
|
|
|
DateFormat,
|
|
|
|
DateHumanize,
|
|
|
|
DateListTimezones,
|
|
|
|
DateNow,
|
2022-04-01 08:09:30 +00:00
|
|
|
DateToRecord,
|
2021-12-11 03:07:39 +00:00
|
|
|
DateToTable,
|
|
|
|
DateToTimezone,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Shells
|
|
|
|
bind_command! {
|
2022-01-05 04:35:50 +00:00
|
|
|
Enter,
|
2021-12-11 03:07:39 +00:00
|
|
|
Exit,
|
2022-01-05 04:35:50 +00:00
|
|
|
GotoShell,
|
|
|
|
NextShell,
|
|
|
|
PrevShell,
|
|
|
|
Shells,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Formats
|
|
|
|
bind_command! {
|
|
|
|
From,
|
|
|
|
FromCsv,
|
|
|
|
FromEml,
|
|
|
|
FromIcs,
|
|
|
|
FromIni,
|
|
|
|
FromJson,
|
2022-02-20 21:26:41 +00:00
|
|
|
FromNuon,
|
2021-12-11 03:07:39 +00:00
|
|
|
FromOds,
|
|
|
|
FromSsv,
|
|
|
|
FromToml,
|
|
|
|
FromTsv,
|
|
|
|
FromUrl,
|
|
|
|
FromVcf,
|
|
|
|
FromXlsx,
|
|
|
|
FromXml,
|
|
|
|
FromYaml,
|
|
|
|
FromYml,
|
2021-10-29 06:26:29 +00:00
|
|
|
To,
|
2021-12-03 02:02:22 +00:00
|
|
|
ToCsv,
|
2021-12-10 01:16:35 +00:00
|
|
|
ToHtml,
|
2021-12-11 03:07:39 +00:00
|
|
|
ToJson,
|
2021-12-10 01:16:35 +00:00
|
|
|
ToMd,
|
2022-02-20 21:26:41 +00:00
|
|
|
ToNuon,
|
2022-05-04 19:12:23 +00:00
|
|
|
ToText,
|
2021-12-11 03:07:39 +00:00
|
|
|
ToToml,
|
|
|
|
ToTsv,
|
2021-12-11 20:08:17 +00:00
|
|
|
ToCsv,
|
|
|
|
Touch,
|
|
|
|
Use,
|
2022-03-17 00:13:34 +00:00
|
|
|
Upsert,
|
2021-12-11 20:08:17 +00:00
|
|
|
Where,
|
2021-12-11 03:07:39 +00:00
|
|
|
ToUrl,
|
2021-12-10 20:46:43 +00:00
|
|
|
ToXml,
|
2021-12-11 03:07:39 +00:00
|
|
|
ToYaml,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Viewers
|
|
|
|
bind_command! {
|
|
|
|
Griddle,
|
|
|
|
Table,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Conversions
|
|
|
|
bind_command! {
|
2022-01-15 23:50:11 +00:00
|
|
|
Fmt,
|
2021-12-11 03:07:39 +00:00
|
|
|
Into,
|
2021-12-19 20:11:28 +00:00
|
|
|
IntoBool,
|
2021-12-11 03:07:39 +00:00
|
|
|
IntoBinary,
|
|
|
|
IntoDatetime,
|
|
|
|
IntoDecimal,
|
2022-03-03 13:16:04 +00:00
|
|
|
IntoDuration,
|
2021-12-11 03:07:39 +00:00
|
|
|
IntoFilesize,
|
|
|
|
IntoInt,
|
|
|
|
IntoString,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Env
|
|
|
|
bind_command! {
|
2022-01-15 23:50:11 +00:00
|
|
|
Env,
|
2021-12-11 03:07:39 +00:00
|
|
|
LetEnv,
|
2022-01-15 23:50:11 +00:00
|
|
|
LoadEnv,
|
2021-11-04 02:32:35 +00:00
|
|
|
WithEnv,
|
2022-05-22 03:13:58 +00:00
|
|
|
ConfigNu,
|
|
|
|
ConfigEnv,
|
2022-07-13 15:03:42 +00:00
|
|
|
ConfigReset,
|
2022-05-22 17:31:57 +00:00
|
|
|
ConfigMeta,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Math
|
|
|
|
bind_command! {
|
|
|
|
Math,
|
|
|
|
MathAbs,
|
|
|
|
MathAvg,
|
|
|
|
MathCeil,
|
|
|
|
MathEval,
|
|
|
|
MathFloor,
|
|
|
|
MathMax,
|
|
|
|
MathMedian,
|
|
|
|
MathMin,
|
|
|
|
MathMode,
|
|
|
|
MathProduct,
|
|
|
|
MathRound,
|
|
|
|
MathSqrt,
|
|
|
|
MathStddev,
|
|
|
|
MathSum,
|
|
|
|
MathVariance,
|
|
|
|
};
|
|
|
|
|
2021-12-12 19:42:04 +00:00
|
|
|
// Network
|
|
|
|
bind_command! {
|
2022-01-05 23:06:16 +00:00
|
|
|
Fetch,
|
2022-02-18 18:53:10 +00:00
|
|
|
Post,
|
2021-12-12 19:42:04 +00:00
|
|
|
Url,
|
|
|
|
UrlHost,
|
|
|
|
UrlPath,
|
|
|
|
UrlQuery,
|
|
|
|
UrlScheme,
|
2022-06-22 03:27:58 +00:00
|
|
|
Port,
|
2021-12-12 19:42:04 +00:00
|
|
|
}
|
|
|
|
|
2021-12-11 03:07:39 +00:00
|
|
|
// Random
|
|
|
|
bind_command! {
|
|
|
|
Random,
|
2021-12-12 19:42:04 +00:00
|
|
|
RandomBool,
|
|
|
|
RandomChars,
|
|
|
|
RandomDecimal,
|
|
|
|
RandomDice,
|
|
|
|
RandomInteger,
|
|
|
|
RandomUuid,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Generators
|
|
|
|
bind_command! {
|
|
|
|
Cal,
|
2022-01-16 13:52:41 +00:00
|
|
|
Seq,
|
2022-01-14 22:07:28 +00:00
|
|
|
SeqDate,
|
2022-05-06 15:40:02 +00:00
|
|
|
SeqChar,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Hash
|
|
|
|
bind_command! {
|
2021-12-10 23:14:28 +00:00
|
|
|
Hash,
|
|
|
|
HashMd5::default(),
|
|
|
|
HashSha256::default(),
|
2022-06-25 21:35:23 +00:00
|
|
|
HashBase64,
|
2021-12-11 03:07:39 +00:00
|
|
|
};
|
2021-09-03 02:15:01 +00:00
|
|
|
|
2022-01-30 22:05:25 +00:00
|
|
|
// Experimental
|
|
|
|
bind_command! {
|
|
|
|
ViewSource,
|
2022-06-06 11:55:23 +00:00
|
|
|
IsAdmin,
|
2022-01-30 22:05:25 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 12:55:19 +00:00
|
|
|
// Deprecated
|
|
|
|
bind_command! {
|
|
|
|
PivotDeprecated,
|
2022-02-13 02:30:37 +00:00
|
|
|
StrDatetimeDeprecated,
|
2022-02-10 12:55:19 +00:00
|
|
|
StrDecimalDeprecated,
|
|
|
|
StrIntDeprecated,
|
2022-03-10 02:58:42 +00:00
|
|
|
MatchDeprecated,
|
2022-02-10 12:55:19 +00:00
|
|
|
NthDeprecated,
|
2022-02-12 15:06:52 +00:00
|
|
|
UnaliasDeprecated,
|
2022-04-07 13:41:09 +00:00
|
|
|
StrFindReplaceDeprecated,
|
2022-04-07 22:10:46 +00:00
|
|
|
KeepDeprecated,
|
|
|
|
KeepUntilDeprecated,
|
|
|
|
KeepWhileDeprecated,
|
2022-02-10 12:55:19 +00:00
|
|
|
};
|
|
|
|
|
2021-11-02 20:56:00 +00:00
|
|
|
#[cfg(feature = "plugin")]
|
|
|
|
bind_command!(Register);
|
|
|
|
|
2021-09-02 22:58:15 +00:00
|
|
|
working_set.render()
|
|
|
|
};
|
|
|
|
|
2022-01-04 22:30:34 +00:00
|
|
|
let _ = engine_state.merge_delta(delta, None, &cwd);
|
2021-09-02 22:58:15 +00:00
|
|
|
|
|
|
|
engine_state
|
2021-01-01 02:12:16 +00:00
|
|
|
}
|