add install command
This commit is contained in:
parent
cc4e83ed53
commit
99d3e51e5d
@ -37,6 +37,14 @@ impl ProjectType {
|
|||||||
ProjectType::Cargo => vec!["cargo".to_owned(), "run".to_owned()]
|
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)]
|
#[derive(Debug)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user