Skip to content

Commit

Permalink
Update hs project add help command
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Aug 22, 2024
1 parent 0cdef6b commit 83b9892
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/cli/commands/project/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ exports.builder = yargs => {
});

yargs.example([['$0 project add', i18n(`${i18nKey}.examples.default`)]]);
yargs.example([
[
'$0 project add --name="my-component" --type="components/example-app"',
i18n(`${i18nKey}.examples.withFlags`),
],
]);

return yargs;
};
5 changes: 3 additions & 2 deletions packages/cli/lang/en.lyaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ en:
describe: "Create a new component within a project"
options:
name:
describe: "Component name"
describe: "The name for your newly created component"
type:
describe: "The type of component"
describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components"
creatingComponent:
message: "Adding a new component to your project"
success:
Expand All @@ -565,6 +565,7 @@ en:
locationInProject: "The component location must be within a project folder"
examples:
default: "Create a component within your project"
withFlags: "Use --name and --type flags to bypass the prompt."
deploy:
describe: "Deploy a project build"
debug:
Expand Down

0 comments on commit 83b9892

Please sign in to comment.