add a new command to query the registry on windows (#6670)

* add a new command to query the registry on windows

* cross platform tweaks

* return nushell datatype

* change visibility of exec and registry commands
This commit is contained in:
Darren Schroeder
2022-10-07 13:54:36 -05:00
committed by GitHub
parent e1d5180e6d
commit 7910d20e50
6 changed files with 294 additions and 26 deletions

View File

@ -158,12 +158,17 @@ pub fn create_default_context() -> EngineState {
bind_command! {
Benchmark,
Complete,
Exec,
External,
NuCheck,
Sys,
};
#[cfg(unix)]
bind_command! { Exec }
#[cfg(windows)]
bind_command! { RegistryQuery }
#[cfg(any(
target_os = "android",
target_os = "linux",