feat: Add Crystal version module (#170)

This commit is contained in:
Youssef Habri
2020-02-05 00:27:06 +01:00
committed by GitHub
parent d4d4a01850
commit f665df226c
8 changed files with 144 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ pub fn exec_cmd(cmd: &str, args: &[&str]) -> Option<CommandOutput> {
stdout: String::from("v12.0.0"),
stderr: String::default(),
}),
"crystal --version" => Some(CommandOutput {
stdout: String::from("Crystal 0.32.1 (2019-12-18)"),
stderr: String::default(),
}),
"dummy_command" => Some(CommandOutput {
stdout: String::from("stdout ok!"),
stderr: String::from("stderr ok!"),