Fix build errors on windows caused by os specific commands

pull/3/head
trivernis 1 year ago
parent 9c525c6c28
commit 7dbdd7f645
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -147,17 +147,33 @@ pub fn bind_path_commands(engine_state: &mut EngineState) -> CrateResult<()> {
}
}
#[cfg(windows)]
pub fn bind_system_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! {
engine_state,
Benchmark,
Complete,
Exec,
External,
NuCheck,
Sys,
Ps,
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
}
}

Loading…
Cancel
Save