From 99d3e51e5de27d557fada994522812a32b6648bb Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Tue, 19 Feb 2019 00:59:08 -0600 Subject: [PATCH] add install command --- scouter/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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)]