File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 60
60
},
61
61
"dependencies" : {
62
62
"@cocreate/actions" : " ^1.8.32" ,
63
- "@cocreate/config" : " ^1.0.3 " ,
63
+ "@cocreate/config" : " ^1.0.4 " ,
64
64
"@cocreate/render" : " ^1.24.32" ,
65
65
"@cocreate/utils" : " ^1.21.16"
66
66
}
Original file line number Diff line number Diff line change @@ -88,33 +88,32 @@ module.exports = async function file(CoCreateConfig) {
88
88
}
89
89
90
90
let { directories, sources } = CoCreateConfig ;
91
- let config = await Config ( [
92
- {
93
- key : 'organization_id' ,
91
+ let config = await Config ( {
92
+ organization_id : {
94
93
prompt : 'Enter your organization_id: '
95
- } , {
96
- key : 'host' ,
94
+ } ,
95
+ host : {
97
96
prompt : 'Enter the host: '
98
- } , {
97
+ } ,
98
+ prompt : {
99
99
prompt : 'Choose an authentication option: \n1.key\n2.Sign In\n' ,
100
100
choices : {
101
101
'1' : {
102
- key : 'key' ,
103
- prompt : 'Enter your key: '
102
+ key : {
103
+ prompt : 'Enter your key: '
104
+ }
104
105
} ,
105
- '2' : [
106
- {
107
- key : 'email' ,
106
+ '2' : {
107
+ email : {
108
108
prompt : 'Enter your email: '
109
109
} ,
110
- {
111
- key : 'password' ,
110
+ password : {
112
111
prompt : 'Enter your password: '
113
112
}
114
- ]
113
+ }
115
114
}
116
115
}
117
- ] )
116
+ } )
118
117
119
118
if ( ! config . organization_id || ! config . host || ! config . key && ( ! config . password || config . email ) ) {
120
119
console . log ( 'One or more required config params could not be found' )
You can’t perform that action at this time.
0 commit comments