Skip to content

Commit

Permalink
fix(examples): correct subCommand check (#2850)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell-Ryan authored Sep 23, 2023
1 parent 109afbf commit c73d66d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/default/commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function cliExecutor(logger, state) {
} else {
// We only need to generate for the specified sub command.
const subCommand = state.command.at(-1);
if (subCommand === "generate") {
if (subCommand === "application") {
steps.unshift(generateApplication);
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/with-auth/commands/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function cliExecutor(logger, state) {
} else {
// We only need to generate for the specified sub command.
const subCommand = state.command.at(-1);
if (subCommand === "generate") {
if (subCommand === "application") {
steps.unshift(generateApplication);
}
}
Expand Down

0 comments on commit c73d66d

Please sign in to comment.