Skip to content

Commit

Permalink
Merge pull request #283 from contentstack/fix/boilerplate-doc-changes
Browse files Browse the repository at this point in the history
updated flag and prompt description
  • Loading branch information
harshithad0703 authored Jul 29, 2024
2 parents 637c30d + 22df298 commit 57de757
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ FLAGS
-n, --name=<value> Name of the app to be created
--app-type=<option> [default: stack] Type of app
<options: stack|organization>
--boilerplate=<value> Provide a boilerplate from the following options: App Boilerplate, DAM App Boilerplate or
Ecommerce App Boilerplate
--boilerplate=<value> Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App Boilerplate>
DESCRIPTION
Create a new app in Developer Hub and optionally clone a boilerplate locally.
Expand Down
3 changes: 2 additions & 1 deletion src/messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const appCreate = {
REGISTER_THE_APP_ON_DEVELOPER_HUB:
"Registering the app with the name {appName} on the Developer Hub...",
START_APP_COMMAND: "Start the app using the following command: {command}",
BOILERPLATE_TEMPLATES: "Provide a boilerplate from the following options: App Boilerplate, DAM App Boilerplate or Ecommerce App Boilerplate"
BOILERPLATE_TEMPLATES: "Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App Boilerplate>",
SELECT_BOILERPLATE: "Select one from the following boilerplates:"
};

const getAppMsg = {
Expand Down
2 changes: 1 addition & 1 deletion src/util/inquirer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const selectedBoilerplate = async (): Promise<any> => {
type: "search-list",
name: "App",
choices: boilerplates.map((bp) => bp.name),
message: appCreate.BOILERPLATE_TEMPLATES,
message: appCreate.SELECT_BOILERPLATE,
})
.then((name) => {
return find(boilerplates, (boilerplate) => boilerplate.name === name);
Expand Down

0 comments on commit 57de757

Please sign in to comment.