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 6060 },
6161 "dependencies" : {
6262 "@cocreate/actions" : " ^1.8.32" ,
63- "@cocreate/config" : " ^1.0.3 " ,
63+ "@cocreate/config" : " ^1.0.4 " ,
6464 "@cocreate/render" : " ^1.24.32" ,
6565 "@cocreate/utils" : " ^1.21.16"
6666 }
Original file line number Diff line number Diff line change @@ -88,33 +88,32 @@ module.exports = async function file(CoCreateConfig) {
8888 }
8989
9090 let { directories, sources } = CoCreateConfig ;
91- let config = await Config ( [
92- {
93- key : 'organization_id' ,
91+ let config = await Config ( {
92+ organization_id : {
9493 prompt : 'Enter your organization_id: '
95- } , {
96- key : 'host' ,
94+ } ,
95+ host : {
9796 prompt : 'Enter the host: '
98- } , {
97+ } ,
98+ prompt : {
9999 prompt : 'Choose an authentication option: \n1.key\n2.Sign In\n' ,
100100 choices : {
101101 '1' : {
102- key : 'key' ,
103- prompt : 'Enter your key: '
102+ key : {
103+ prompt : 'Enter your key: '
104+ }
104105 } ,
105- '2' : [
106- {
107- key : 'email' ,
106+ '2' : {
107+ email : {
108108 prompt : 'Enter your email: '
109109 } ,
110- {
111- key : 'password' ,
110+ password : {
112111 prompt : 'Enter your password: '
113112 }
114- ]
113+ }
115114 }
116115 }
117- ] )
116+ } )
118117
119118 if ( ! config . organization_id || ! config . host || ! config . key && ( ! config . password || config . email ) ) {
120119 console . log ( 'One or more required config params could not be found' )
You can’t perform that action at this time.
0 commit comments