add install command

This commit is contained in:
Adrian Malacoda 2019-02-19 00:59:08 -06:00
parent cc4e83ed53
commit 99d3e51e5d

View File

@ -37,6 +37,14 @@ impl ProjectType {
ProjectType::Cargo => vec!["cargo".to_owned(), "run".to_owned()]
}
}
pub fn install_command(&self) -> Vec<String> {
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)]