@@ -18,8 +18,8 @@ const start = () => {
18
18
return 'Repo slug must be in the form "user/project"' ;
19
19
}
20
20
return true ;
21
- }
22
- }
21
+ } ,
22
+ } ,
23
23
] )
24
24
. then ( ( { repo } ) => {
25
25
store . dispatch ( Action . setRepo ( repo ) ) ;
@@ -34,8 +34,8 @@ const main = () => {
34
34
type : 'list' ,
35
35
name : 'action' ,
36
36
message : 'What would you like to do?' ,
37
- choices : [ 'Browse current state' , 'Get new data' , new inquirer . Separator ( ) , 'Quit' ]
38
- }
37
+ choices : [ 'Browse current state' , 'Get new data' , new inquirer . Separator ( ) , 'Quit' ] ,
38
+ } ,
39
39
] )
40
40
. then ( ( { action } ) => {
41
41
switch ( action ) {
@@ -62,10 +62,10 @@ const browseMain = () => {
62
62
new inquirer . Separator ( ) ,
63
63
...Object . keys ( store . getState ( ) ) . map ( ( value ) => ( { value, name : `Browse ${ value } ` } ) ) ,
64
64
new inquirer . Separator ( ) ,
65
- { value : 'main' , name : 'Go Back to Main Menu' }
65
+ { value : 'main' , name : 'Go Back to Main Menu' } ,
66
66
] ;
67
- }
68
- }
67
+ } ,
68
+ } ,
69
69
] )
70
70
. then ( ( answers ) => {
71
71
switch ( answers . browseMainAction ) {
@@ -95,16 +95,16 @@ const browse = (stateKey) => {
95
95
{ value : 'denormalize' , name : 'Denormalize' } ,
96
96
new inquirer . Separator ( ) ,
97
97
{ value : 'browseMain' , name : 'Go Back to Browse Menu' } ,
98
- { value : 'main' , name : 'Go Back to Main Menu' }
99
- ]
98
+ { value : 'main' , name : 'Go Back to Main Menu' } ,
99
+ ] ,
100
100
} ,
101
101
{
102
102
type : 'list' ,
103
103
name : 'list' ,
104
104
message : `Select the ${ stateKey } to view:` ,
105
105
choices : Object . keys ( store . getState ( ) [ stateKey ] ) ,
106
- when : ( { action } ) => action === 'view'
107
- }
106
+ when : ( { action } ) => action === 'view' ,
107
+ } ,
108
108
] )
109
109
. then ( ( { action, list } ) => {
110
110
const state = store . getState ( ) [ stateKey ] ;
@@ -144,9 +144,9 @@ const browseDenormalized = (stateKey) => {
144
144
...Object . keys ( store . getState ( ) [ stateKey ] ) ,
145
145
new inquirer . Separator ( ) ,
146
146
{ value : 'browse' , name : 'Go Back to Browse Menu' } ,
147
- { value : 'main' , name : 'Go Back to Main Menu' }
148
- ]
149
- }
147
+ { value : 'main' , name : 'Go Back to Main Menu' } ,
148
+ ] ,
149
+ } ,
150
150
] )
151
151
. then ( ( { selector } ) => {
152
152
switch ( selector ) {
@@ -174,10 +174,10 @@ const pull = () => {
174
174
return [
175
175
...Object . keys ( store . getState ( ) ) . map ( ( value ) => ( { value, name : value } ) ) ,
176
176
new inquirer . Separator ( ) ,
177
- { value : 'main' , name : 'Go Back to Main Menu' }
177
+ { value : 'main' , name : 'Go Back to Main Menu' } ,
178
178
] ;
179
- }
180
- }
179
+ } ,
180
+ } ,
181
181
] )
182
182
. then ( ( answers ) => {
183
183
switch ( answers . pullAction ) {
0 commit comments