Skip to content

Commit 54e190d

Browse files
committed
Rename method to avoid confusions with setPrompt()
1 parent 821e3de commit 54e190d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ loads generators, helpers and/or partials from another plopfile or npm module
192192

193193
Renders the handlebars `template` using the `data` passed in. Returns the rendered template.
194194

195-
### plop.setStartingPrompt(message)
195+
### plop.setWelcomeMessage(message)
196196
- message {String}
197197

198198
Customizes the displayed message that asks you to choose a generator when you run `plop`.

example/plopfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33

44
module.exports = function (plop) {
55
// starting prompt can be customize to display what you want
6-
// plop.setStartingPrompt('[CUSTOM]'.yellow + ' What can I do for you?');
6+
// plop.setWelcomeMessage('[CUSTOM]'.yellow + ' What can I do for you?');
77

88
// helpers are passed through to handlebars and made
99
// available for use in the generator templates

src/plop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function run(env) {
8080
break;
8181

8282
default:
83-
out.chooseOptionFromList(generators, plop.getStartingPrompt())
83+
out.chooseOptionFromList(generators, plop.getWelcomeMessage())
8484
.then(function (generatorName) {
8585
doThePlop(plop.getGenerator(generatorName));
8686
});

0 commit comments

Comments
 (0)