diff --git a/src/main.rs b/src/main.rs index 7103ebf..3b18da1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,16 +1,14 @@ -pub mod cli; -pub mod package_json; -pub mod run; -pub mod suggest; +mod cli; +mod package_json; +mod run; +mod suggest; +use clap::Parser as _; +use color_eyre::eyre::Result; use std::env; -pub use cli::get_level; - use crate::cli::{Cli, NrxCli}; -use clap::Parser as _; - -use color_eyre::eyre::Result; +use cli::get_level; fn main() -> Result<()> { color_eyre::install()?; diff --git a/src/run/mod.rs b/src/run/mod.rs index bfa389e..69b6e1d 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -3,5 +3,4 @@ mod script; mod util; pub use exec::run_exec; -pub use script::{run_script, ScriptType}; -pub use util::has_exec; +pub use script::run_script; diff --git a/src/run/util.rs b/src/run/util.rs index 0529c20..8f47d66 100644 --- a/src/run/util.rs +++ b/src/run/util.rs @@ -30,14 +30,6 @@ pub fn make_patched_path(package_path: &Path) -> Result { Ok(env::join_paths(make_patched_paths(package_path))?) } -#[must_use] -pub fn has_exec(package_path: &Path, bin: &str) -> bool { - make_patched_paths(package_path) - .into_iter() - .map(|p| p.join(bin)) - .any(|p| p.is_file()) -} - #[cfg(unix)] #[allow(clippy::unnecessary_wraps)] #[inline]