Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: The --hurry option #234

Merged
merged 1 commit into from
Sep 13, 2018
Merged

fix: The --hurry option #234

merged 1 commit into from
Sep 13, 2018

Conversation

brandonocasey
Copy link
Contributor

Closes #178

docs: false,
css: false,
docs: true,
css: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop these changes here if we want, but I think that we want to offer the full toolset for --hurry.

@@ -242,6 +246,7 @@ module.exports = class extends Generator {
*/
prompting() {
if (this.options.skipPrompt) {
_.assign(this._preconfigs, this._getPromptDefaults());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously we did not set defaults for --hurry so everything was just undefined.

@@ -77,6 +77,10 @@ module.exports = class extends Generator {
// purposes of the prompt (otherwise it will be rejected by validation).
defaults.name = naming.getBasicName(defaults.name);

// we need to default the description to an empty string for
// --hurry
defaults.description = '';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did not have a default for description and we need one if we don't have a prompt.

@brandonocasey brandonocasey merged commit b608014 into master Sep 13, 2018
@brandonocasey brandonocasey deleted the fix/hurry branch September 13, 2018 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants