Compare commits

...

6 Commits

@ -1,6 +1,6 @@
[package] [package]
name = "embed-nu" name = "embed-nu"
version = "0.5.1" version = "0.5.4"
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"

@ -147,17 +147,47 @@ pub fn bind_path_commands(engine_state: &mut EngineState) -> CrateResult<()> {
} }
} }
#[cfg(windows)]
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> { pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! { bind_commands! {
engine_state, engine_state,
Benchmark, Benchmark,
Complete, Complete,
Exec,
External, External,
NuCheck, NuCheck,
Sys, Sys,
Ps, Ps,
Which, Which,
RegistryQuery
}
}
#[cfg(unix)]
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! {
engine_state,
Benchmark,
Complete,
External,
NuCheck,
Sys,
Ps,
Which,
Exec
}
}
#[cfg(not(any(unix, windows)))]
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! {
engine_state,
Benchmark,
Complete,
External,
NuCheck,
Sys,
Ps,
Which
} }
} }

@ -10,6 +10,7 @@ pub use argument::{Argument, IntoArgument};
pub use context::{CommandGroupConfig, Context, ContextBuilder}; pub use context::{CommandGroupConfig, Context, ContextBuilder};
pub use into_expression::*; pub use into_expression::*;
pub use into_value::*; pub use into_value::*;
pub use nu_engine::{self, CallExt};
pub use nu_protocol::{self, PipelineData, Value}; pub use nu_protocol::{self, PipelineData, Value};
pub use rusty_value; pub use rusty_value;
pub use utils::NewEmpty; pub use utils::NewEmpty;

Loading…
Cancel
Save