summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorNicola Corti <corti.nico@gmail.com>2020-12-26 15:26:50 +0100
committerGitHub <noreply@github.com>2020-12-26 15:26:50 +0100
commit208251adefcfdba3604821daca848b76e78ff0eb (patch)
tree07a5d5a9a664b23710d72ded1b44d7e7a62f6fe0 /src/utils.rs
parent53a08712eb2de5d507655d423cc78e7130a32dd1 (diff)
feat(kotlin): Add the kotlin module (#2026)
Add a module to show the currently installed Kotlin version if a .kt/.kts file is found in the current folder
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 5dd9b2129..b866a2bde 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -89,6 +89,14 @@ Elixir 1.10 (compiled with Erlang/OTP 22)\n",
stdout: String::from("julia version 1.4.0\n"),
stderr: String::default(),
}),
+ "kotlin -version" => Some(CommandOutput {
+ stdout: String::from("Kotlin version 1.4.21-release-411 (JRE 14.0.1+7)\n"),
+ stderr: String::default(),
+ }),
+ "kotlinc -version" => Some(CommandOutput {
+ stdout: String::from("info: kotlinc-jvm 1.4.21 (JRE 14.0.1+7)\n"),
+ stderr: String::default(),
+ }),
"lua -v" => Some(CommandOutput{
stdout: String::from("Lua 5.4.0 Copyright (C) 1994-2020 Lua.org, PUC-Rio\n"),
stderr: String::default(),