File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ export class Helpers {
217217 apiAuth : boolean ,
218218 enableSwagger : boolean
219219 ) {
220+
220221 const rows = JSON . stringify ( slsinfo ) . split ( '\\n' ) as any [ ] ;
221222 const createKeyValues = rows . map ( ( x , i , rows ) => {
222223 if ( x . startsWith ( ' ANY -' ) ) {
@@ -296,6 +297,7 @@ export class Helpers {
296297 }
297298 console . log ( ) ;
298299 console . log ( ) ;
300+
299301 if ( enableSwagger ) {
300302 cli . table (
301303 [
@@ -331,6 +333,7 @@ export class Helpers {
331333 { 'no-header' : true }
332334 ) ;
333335 }
336+
334337 console . log ( ) ;
335338 console . log ( ) ;
336339 }
Original file line number Diff line number Diff line change @@ -221,11 +221,13 @@ export class CreateStackCommand extends Command {
221221 const appConfig = JSON . parse (
222222 fs . readFileSync ( stackFolder + '/config/appconfig.json' , 'UTF-8' )
223223 ) as AppConfig ;
224+
224225 Helpers . createCLIOutput (
225226 slsinfo ,
226227 appConfig . enableApiKeyAuth ,
227228 appConfig . enableSwagger
228229 ) ;
230+
229231 } catch ( error ) {
230232 this . log ( `${ chalk . red ( error . message ) } ` ) ;
231233 this . log ( slsinfo ) ;
Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ export class UpdateStackCommand extends Command {
184184 const appConfig = JSON . parse (
185185 fs . readFileSync ( stackFolder + '/config/appconfig.json' , 'UTF-8' )
186186 ) as AppConfig ;
187+
187188 Helpers . createCLIOutput (
188189 slsinfo ,
189190 appConfig . enableApiKeyAuth ,
190191 appConfig . enableSwagger
191192 ) ;
193+
192194 } catch ( error ) {
193195 this . log ( `${ chalk . red ( error . message ) } ` ) ;
194196 this . log ( slsinfo ) ;
You can’t perform that action at this time.
0 commit comments