From 7054ce15b6a1c4f91375e92115f8893c4892d78e Mon Sep 17 00:00:00 2001 From: Jamie Jones Date: Wed, 14 Mar 2018 20:52:49 -0400 Subject: [PATCH 1/2] update description variable name --- bin/create-probot-app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/create-probot-app.js b/bin/create-probot-app.js index 81e1363c79..652a87a063 100755 --- a/bin/create-probot-app.js +++ b/bin/create-probot-app.js @@ -18,7 +18,7 @@ const TEMPLATE_REPO_URL = 'https://github.com/probot/template.git' program .usage('[options] [destination]') .option('-n, --appName ', 'App name') - .option('-d, --desc ""', + .option('-d, --description ""', 'Description (contain in quotes)') .option('-a, --author ""', 'Author name (contain in quotes)') @@ -55,12 +55,12 @@ const prompts = [ }, { type: 'input', - name: 'desc', + name: 'description', default () { return 'A Probot app' }, message: 'Description of app:', - when: !program.desc + when: !program.description }, { type: 'input', From cfd64819a175040cd78be4efe7a8e3d4d03f78d2 Mon Sep 17 00:00:00 2001 From: Jamie Jones Date: Tue, 20 Mar 2018 23:30:43 -0400 Subject: [PATCH 2/2] description is a magic word --- bin/create-probot-app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/create-probot-app.js b/bin/create-probot-app.js index 652a87a063..d598c68308 100755 --- a/bin/create-probot-app.js +++ b/bin/create-probot-app.js @@ -18,7 +18,7 @@ const TEMPLATE_REPO_URL = 'https://github.com/probot/template.git' program .usage('[options] [destination]') .option('-n, --appName ', 'App name') - .option('-d, --description ""', + .option('-d, --desc ""', 'Description (contain in quotes)') .option('-a, --author ""', 'Author name (contain in quotes)') @@ -60,7 +60,7 @@ const prompts = [ return 'A Probot app' }, message: 'Description of app:', - when: !program.description + when: !program.desc }, { type: 'input',