This repository has been archived by the owner on Sep 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoil.lua
81 lines (81 loc) · 1.39 KB
/
oil.lua
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
local oil_generate_argument_parser = {
'help',
'config',
'controller',
'model',
'migration',
'task',
'views',
'admin',
'scaffold'
}
local oil_package_argument_parser = {
'help',
'install',
'uninstall'
}
local oil_refine_argument_parser = {
'help',
'install',
'robots',
'robots:protect',
'fromdb',
'fromdb:help',
'fromdb:scaffold',
'fromdb:model',
'migrate',
'migrate:help',
'session',
'session:create',
'session:remove',
'session:clear',
'session:help'
}
local oil_cell_argument_parser = {
'help',
'list',
'search',
'install',
'upgrade',
'uninstall',
'info',
'details'
}
local oil_test_argument_parser = {
'-group',
'-exclude-group',
'-coverage-html',
'-coverage-clover',
'-coverage-text',
'-coverage-php',
'-log-junit'
}
local oil_server_argument_parser = {
'-php',
'-port',
'-p',
'-host',
'-h',
'-docroot',
'-d',
'-router',
'-r'
}
local oil_argument_parser = {
'help',
generate = oil_generate_argument_parser,
g = oil_generate_argument_parser,
package = oil_package_argument_parser,
p = oil_package_argument_parser,
'console',
'c',
refine = oil_refine_argument_parser,
r = oil_refine_argument_parser,
cell = oil_cell_argument_parser,
cells = oil_cell_argument_parser,
test = oil_test_argument_parser,
t = oil_test_argument_parser,
server = oil_server_argument_parser,
s = oil_server_argument_parser
}
clink.arg.register_parser('oil', oil_argument_parser)