Skip to content

Commit

Permalink
feat: default d2c generate (#158)
Browse files Browse the repository at this point in the history
* feat: d2c is not the default command for generated meaning you don't need to pass the "d2c" argument

* chore: changeset
  • Loading branch information
field123 authored Jan 23, 2024
1 parent 8696f4e commit 6461e20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-poems-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"composable-cli": patch
---

d2c is not the default command for generated meaning you don't need to pass the "d2c" argument
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function createD2CCommand(
ctx: CommandContext,
): yargs.CommandModule<GenerateCommandArguments, D2CCommandArguments> {
return {
command: "d2c [name]",
command: ["d2c [name]", "$0 [name]"],
aliases: ["storefront"],
describe: "generate Elasticpath storefront",
builder: async (yargs) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export function createGenerateCommand(
"boolean-negation": true,
"strip-aliased": true,
})
.demandCommand(1)
.strict()
},
handler: ctx.handleErrors(
Expand Down

0 comments on commit 6461e20

Please sign in to comment.