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

Modify hs create module command to correspondence to content_types (Previously host_template_types) #1225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions lib/prompts/createModulePrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,18 @@ const CONTENT_TYPES_PROMPT = {
message: i18n(`${i18nKey}.selectContentType`),
default: ['PAGE'],
choices: [
{ name: 'Page', value: 'PAGE' },
{ name: 'Blog post', value: 'BLOG_POST' },
{ name: 'Blog listing', value: 'BLOG_LISTING' },
{ name: 'Email', value: 'EMAIL' },
{ name: 'Any', value: 'ANY'},
{ name: 'Landing page', value: 'LANDING_PAGE'},
{ name: 'Site page', value: 'SITE_PAGE'},
{ name: 'Blog post', value: 'BLOG_POST'},
{ name: 'Blog listing', value: 'BLOG_LISTING'},
{ name: 'Email', value: 'EMAIL'},
{ name: 'Knowledge base', value: 'KNOWLEDGE_BASE'},
{ name: 'Quote template', value: 'QUOTE_TEMPLATE'},
{ name: 'Customer portal', value: 'CUSTOMER_PORTAL'},
{ name: 'Web interactive', value: 'WEB_INTERACTIVE'},
{ name: 'Subscription', value: 'SUBSCRIPTION'},
{ name: 'Membership', value: 'MEMBERSHIP'}
],
validate: input => {
return new Promise(function(resolve, reject) {
Expand Down