forked from Vidatec/filament-rnvidatec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·60 lines (59 loc) · 1.21 KB
/
index.js
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
const component = require('./generators/component');
const screen = require('./generators/screen');
const network = require('./generators/network');
const redux = require('./generators/redux');
const context = require('./generators/context');
exports.cli = {
new: {
screen: {
_func: {
desc: 'Generate a screen',
run: screen.gen,
arg: {
required : true,
desc : 'screen_name'
}
}
},
redux: {
_func: {
desc: 'Generate a redux',
run: redux.gen,
arg: {
required : true,
desc : 'redux_name'
}
}
},
component: {
_func: {
desc: 'Generate a component',
run: component.gen,
arg: {
required : true,
desc : 'component_name'
}
}
},
network: {
_func: {
desc: 'Generate a network controller',
run: network.gen,
arg: {
required : true,
desc : 'network_name'
}
}
},
context: {
_func: {
desc: 'Generate a context',
run: context.gen,
arg: {
required : true,
desc : 'context_name'
}
}
},
}
}