summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorKokaKiwi <kokakiwi+git@kokakiwi.net>2020-03-02 04:29:27 +0100
committerGitHub <noreply@github.com>2020-03-01 22:29:27 -0500
commit243e97cfe660cf1771232291bbfd0dc88f5b961a (patch)
tree0af6acf494e7f0302d9ee2738ad18fd7f2ccc2bb /src/utils.rs
parent1eabd527252291398df5749d30f3459ea2a03823 (diff)
feat: add Elixir module (#437)
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 5a9fbef4f..5e29400aa 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -73,6 +73,15 @@ pub fn exec_cmd(cmd: &str, args: &[&str]) -> Option<CommandOutput> {
stdout: String::from("8.6.5"),
stderr: String::default(),
}),
+ "elixir --version" => Some(CommandOutput {
+ stdout: String::from(
+ "\
+Erlang/OTP 22 [erts-10.6.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe]
+
+Elixir 1.10 (compiled with Erlang/OTP 22)",
+ ),
+ stderr: String::default(),
+ }),
// If we don't have a mocked command fall back to executing the command
_ => internal_exec_cmd(&cmd, &args),
}