File tree 2 files changed +5
-13
lines changed
2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const microservicePromptsSuite = [
82
82
input : {
83
83
name : 'baseService' ,
84
84
message : 'Base ARC microservice' ,
85
- type : 'list ' ,
85
+ type : 'checkbox ' ,
86
86
choices : Object . values ( SERVICES ) ,
87
87
} ,
88
88
output : SERVICES . AUTH ,
@@ -178,7 +178,7 @@ export const microservicePromptsSuite = [
178
178
input : {
179
179
name : 'baseService' ,
180
180
message : 'Base ARC microservice' ,
181
- type : 'list ' ,
181
+ type : 'checkbox ' ,
182
182
choices : Object . values ( SERVICES ) ,
183
183
} ,
184
184
output : SERVICES . AUTH ,
Original file line number Diff line number Diff line change @@ -159,25 +159,17 @@ export default abstract class CommandBase<T extends object> extends Command {
159
159
response . type = 'confirm' ;
160
160
response . default = false ;
161
161
} else if ( flag . options ) {
162
- if ( flag . name === 'datasourceType' ) {
163
- response . type = 'list' ;
164
- response . choices = flag . options ;
165
- } else if ( flag . options . length > 1 ) {
162
+ if ( flag . name === 'baseService' ) {
166
163
response . type = 'checkbox' ;
167
- response . choices = flag . options . map ( option => {
168
- return {
169
- name : option ,
170
- value : option ,
171
- } ;
172
- } ) ;
164
+ response . choices = flag . options ;
173
165
} else {
174
166
response . type = 'list' ;
175
167
response . choices = flag . options ;
176
168
}
177
169
} else {
178
170
//do nothing
179
- `` ;
180
171
}
172
+
181
173
return response ;
182
174
}
183
175
You can’t perform that action at this time.
0 commit comments