-
Notifications
You must be signed in to change notification settings - Fork 64
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
Create new prompt for is_available_for_new_content
.
#1226
Conversation
lang/en.lyaml
Outdated
@@ -1202,6 +1202,7 @@ en: | |||
selectReactType: "Is this a React module?" | |||
selectContentType: "What types of content will this module be used in?" | |||
confirmGlobal: "Is this a global module?" | |||
availableForNewContent: "Is this available for new content?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would just adjust the wording here to Make this module available for new content?
@tenas97 would you mind adding a slightly more detailed description of these changes? It may help someone down the road. Also we get some external 👀 on this repo since it's public so it's always useful to explain what the changes are doing. Side note, is that link to issue 344 pointing to the right place? I'm not seeing how that's related to these changes. |
@brandenrodgers Nice catch with the link. I just updated the description. |
const AVAILABLE_FOR_NEW_CONTENT = { | ||
type: 'confirm', | ||
name: 'availableForNewContent', | ||
message: i18n(`${i18nKey}.availableForNewContent`), | ||
default: true, | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the addition of the prompt is causing an AT failure. I think it is as simple as adding another ENTER
on this line
Description and Context
Developers use the CLI to create a new module locally. The default file structure we provide includes a default value for
is_available_for_new_content
within the meta.json file for the module. This PR just adds a new prompt to the list of prompts for the create module cli command, allowing users to choose how they want to set theis_available_for_new_content
property.closes https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/344