add install command
This commit is contained in:
@@ -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)]
|
||||
|
Reference in New Issue
Block a user