Skip to content

Commit c2064f8

Browse files
authored
Modify hs create module command to correspondence to content_types (Previously host_template_types) (#1225)
1 parent 80bd984 commit c2064f8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/prompts/createModulePrompt.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ const CONTENT_TYPES_PROMPT = {
2828
type: 'checkbox',
2929
name: 'contentTypes',
3030
message: i18n(`${i18nKey}.selectContentType`),
31-
default: ['PAGE'],
31+
default: ['ANY'],
3232
choices: [
33-
{ name: 'Page', value: 'PAGE' },
33+
{ name: 'Any', value: 'ANY' },
34+
{ name: 'Landing page', value: 'LANDING_PAGE' },
35+
{ name: 'Site page', value: 'SITE_PAGE' },
3436
{ name: 'Blog post', value: 'BLOG_POST' },
3537
{ name: 'Blog listing', value: 'BLOG_LISTING' },
3638
{ name: 'Email', value: 'EMAIL' },
39+
{ name: 'Knowledge base', value: 'KNOWLEDGE_BASE' },
40+
{ name: 'Quote template', value: 'QUOTE_TEMPLATE' },
41+
{ name: 'Customer portal', value: 'CUSTOMER_PORTAL' },
42+
{ name: 'Web interactive', value: 'WEB_INTERACTIVE' },
43+
{ name: 'Subscription', value: 'SUBSCRIPTION' },
44+
{ name: 'Membership', value: 'MEMBERSHIP' },
3745
],
3846
validate: input => {
3947
return new Promise(function(resolve, reject) {

0 commit comments

Comments
 (0)