From 45e77cbe3162b041821f1b21692daeb026c4456e Mon Sep 17 00:00:00 2001 From: abetomo Date: Tue, 19 Dec 2017 11:00:01 +0900 Subject: [PATCH 1/3] Add event_sources.json to setup message It changed to display by using console format. --- lib/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index e0205167..316c2a79 100644 --- a/lib/main.js +++ b/lib/main.js @@ -43,8 +43,12 @@ class Lambda { this._createSampleFile('deploy.env', 'deploy.env') this._createSampleFile(program.contextFile, 'context.json') this._createSampleFile('event_sources.json', 'event_sources.json') - console.log('Setup done. Edit the .env, deploy.env, ' + program.contextFile + ' and ' + program.eventFile + - ' files as needed.') + console.log( + 'Setup done. ' + + 'Edit the .env, deploy.env, %s, event_sources.json and %s files as needed.', + program.contextFile, + program.eventFile + ) } run (program) { From 4270fb5e855d9f5878f4f9047d42985da28fac84 Mon Sep 17 00:00:00 2001 From: abetomo Date: Tue, 19 Dec 2017 18:53:15 +0900 Subject: [PATCH 2/3] Use template literals --- lib/main.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/main.js b/lib/main.js index 316c2a79..6743d855 100644 --- a/lib/main.js +++ b/lib/main.js @@ -43,12 +43,9 @@ class Lambda { this._createSampleFile('deploy.env', 'deploy.env') this._createSampleFile(program.contextFile, 'context.json') this._createSampleFile('event_sources.json', 'event_sources.json') - console.log( - 'Setup done. ' + - 'Edit the .env, deploy.env, %s, event_sources.json and %s files as needed.', - program.contextFile, - program.eventFile - ) + console.log(`Setup done. +Edit the .env, deploy.env, ${program.contextFile},\ +event_sources.json and ${program.eventFile} files as needed.`) } run (program) { From 1e1b0679d963975b3a4dd70421437cfe581b23f7 Mon Sep 17 00:00:00 2001 From: abetomo Date: Tue, 19 Dec 2017 18:55:28 +0900 Subject: [PATCH 3/3] Add space --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 6743d855..b2a2a725 100644 --- a/lib/main.js +++ b/lib/main.js @@ -44,7 +44,7 @@ class Lambda { this._createSampleFile(program.contextFile, 'context.json') this._createSampleFile('event_sources.json', 'event_sources.json') console.log(`Setup done. -Edit the .env, deploy.env, ${program.contextFile},\ +Edit the .env, deploy.env, ${program.contextFile}, \ event_sources.json and ${program.eventFile} files as needed.`) }