summaryrefslogtreecommitdiff
path: root/script/cli/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-01 19:51:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-01 19:51:49 +0800
commit268aee4c5e0851b9cd5a391569bec5371aa124eb (patch)
tree5eea638e16fb2ad637a346e1cbaf1c590c9e91a5 /script/cli/init.lua
parent73c405b176ef9aa8468c6279fab883943def7ade (diff)
downloadlua-language-server-268aee4c5e0851b9cd5a391569bec5371aa124eb.zip
offline diagnostic
Diffstat (limited to 'script/cli/init.lua')
-rw-r--r--script/cli/init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/cli/init.lua b/script/cli/init.lua
new file mode 100644
index 00000000..c2fc7aa8
--- /dev/null
+++ b/script/cli/init.lua
@@ -0,0 +1,9 @@
+if _G['VERSION'] then
+ require 'cli.version'
+ os.exit(0, true)
+end
+
+if _G['CHECK'] then
+ require 'cli.check'
+ os.exit(0, true)
+end