Update nu version

pull/3/head
trivernis 2 years ago
parent 691f91efdf
commit cf9086e4e1
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,6 +1,6 @@
[package] [package]
name = "embed-nu" name = "embed-nu"
version = "0.3.5" version = "0.4.0"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
repository = "https://github.com/Trivernis/embed-nu" repository = "https://github.com/Trivernis/embed-nu"
@ -10,10 +10,10 @@ authors = ["trivernis <trivernis@proton.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
nu-command = "0.71.0" nu-command = "0.72.0"
nu-engine = "0.71.0" nu-engine = "0.72.0"
nu-parser = "0.71.0" nu-parser = "0.72.0"
nu-protocol = "0.71.0" nu-protocol = "0.72.0"
paste = "1.0.9" paste = "1.0.10"
rusty-value = { version = "0.6.0", features = ["derive"] } rusty-value = { version = "0.6.0", features = ["derive"] }
thiserror = "1.0.37" thiserror = "1.0.37"

@ -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,
} }
} }

@ -93,6 +93,7 @@ impl ContextBuilder {
name.to_string().into_bytes(), name.to_string().into_bytes(),
Span::empty(), Span::empty(),
nu_protocol::Type::Any, nu_protocol::Type::Any,
false,
); );
self.stack.add_var(var_id, value.into_value()); self.stack.add_var(var_id, value.into_value());
let delta = working_set.render(); let delta = working_set.render();

Loading…
Cancel
Save