summaryrefslogtreecommitdiff
path: root/script/cli/init.lua
blob: d37c50ae1f15677ed4a8a0a668e470564cac3079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if _G['VERSION'] then
    require 'cli.version'
    os.exit(0, true)
end

if _G['CHECK'] then
    require 'cli.check'
    os.exit(0, true)
end

if _G['DOC_UPDATE'] then
    require 'cli.doc' .runCLI()
    os.exit(0, true)
end

if _G['DOC'] then
    require 'cli.doc' .runCLI()
    os.exit(0, true)
end

if _G['VISUALIZE'] then
	local ret = require 'cli.visualize' .runCLI()
	os.exit(ret or 0, true)
end