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

@ -1,5 +1,6 @@
mod benchmark;
mod complete;
#[cfg(unix)]
mod exec;
mod nu_check;
#[cfg(any(
@ -9,12 +10,15 @@ mod nu_check;
target_os = "windows"
))]
mod ps;
#[cfg(windows)]
mod registry_query;
mod run_external;
mod sys;
mod which_;
pub use benchmark::Benchmark;
pub use complete::Complete;
#[cfg(unix)]
pub use exec::Exec;
pub use nu_check::NuCheck;
#[cfg(any(
@ -24,6 +28,8 @@ pub use nu_check::NuCheck;
target_os = "windows"
))]
pub use ps::Ps;
#[cfg(windows)]
pub use registry_query::RegistryQuery;
pub use run_external::{External, ExternalCommand};
pub use sys::Sys;
pub use which_::Which;