diff options
author | Shu Kutsuzawa <cappyzawa@yahoo.ne.jp> | 2020-10-28 03:05:20 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 19:05:20 +0100 |
commit | c6d25a6a38e136bdb86b322e6574afdc67f6b1a8 (patch) | |
tree | c54d8b34b1e027e2b4dd20148ce7bbdffeed0877 /src/utils.rs | |
parent | f0cc2bea79cac4ddce47062b5bd8795b10950f05 (diff) |
feat(lua): Add a Lua module (#1815)
* feat: add lua module
* docs: add lua module
* fix: lua version test
* feat: lua module can be detected if the current dir contains a "lua" dir
* feat: enable to use luajit
* fix: improve regex
* fix based on https://github.com/starship/starship/pull/1815#discussion_r510932742
* fix based on https://github.com/starship/starship/pull/1815#discussion_r511362581
* fix based on https://github.com/starship/starship/pull/1815#discussion_r510941252
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs index 10834251d..428d10982 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -88,6 +88,14 @@ Elixir 1.10 (compiled with Erlang/OTP 22)\n", stdout: String::from("julia version 1.4.0\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(), + }), + "luajit -v" => Some(CommandOutput{ + stdout: String::from("LuaJIT 2.0.5 -- Copyright (C) 2005-2017 Mike Pall. http://luajit.org/\n"), + stderr: String::default(), + }), "nim --version" => Some(CommandOutput { stdout: String::from( "\ |