Skip to content

Commit 9ae0a7d

Browse files
authored
Merge branch 'master' into feat/add-cli-output-feat
2 parents ca27e09 + a9db152 commit 9ae0a7d

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

packages/cli/src/actions/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

packages/cli/src/commands/create-stack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

packages/cli/src/commands/update-stack.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)