Skip to content

Commit

Permalink
Add example for template source
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Jan 22, 2025
1 parent 4b4d9ee commit 525d8e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/project/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ exports.builder = yargs => {
});

yargs.example([['$0 project create', i18n(`${i18nKey}.examples.default`)]]);
yargs.example([
[
'$0 project create --template-source HubSpot/ui-extensions-examples',
i18n(`${i18nKey}.examples.templateSource`),
],
]);

addConfigOptions(yargs);
addAccountOptions(yargs);
Expand Down
1 change: 1 addition & 0 deletions lang/en.lyaml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ en:
welcomeMessage: "Welcome to HubSpot Developer Projects!"
examples:
default: "Create a new project"
templateSource: "Create a new project from a custom GitHub repository, the repository must contain a valid project template and a config.json file defining the available templates"
options:
dest:
describe: "Directory where the project should be created"
Expand Down

0 comments on commit 525d8e5

Please sign in to comment.