diff --git a/scouter/src/lib.rs b/scouter/src/lib.rs index fb58bc8..1f3291d 100644 --- a/scouter/src/lib.rs +++ b/scouter/src/lib.rs @@ -37,6 +37,14 @@ impl ProjectType { ProjectType::Cargo => vec!["cargo".to_owned(), "run".to_owned()] } } + + pub fn install_command(&self) -> Vec { + match self { + ProjectType::Maven => vec!["mvn".to_owned(), "install".to_owned()], + ProjectType::Npm => vec!["npm".to_owned(), "install".to_owned()], + ProjectType::Cargo => vec!["cargo".to_owned(), "install".to_owned()] + } + } } #[derive(Debug)]