blob: 65e7e102ae0d1a2fa5a042bb598ddd768918058f (
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
25
26
27
28
29
|
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['CHECK_WORKER'] then
require 'cli.check_worker'
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
|