mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Add Crystal version module (#170)
This commit is contained in:
@@ -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!"),
|
||||
|
||||
Reference in New Issue
Block a user