Skip to content

Commit

Permalink
fix: remove unused yes flag from generate command and generate hook c…
Browse files Browse the repository at this point in the history
…ommands
  • Loading branch information
mdonnalley committed Mar 20, 2024
1 parent a7812af commit 78a6238
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/commands/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export default class Generate extends GeneratorCommand<typeof Generate> {
char: 'd',
description: 'Directory to build the CLI in.',
}),
yes: Flags.boolean({
aliases: ['defaults'],
char: 'y',
description: 'Use defaults for all prompts. Individual flags will override defaults.',
}),
}

static summary = 'Generate a new CLI'
Expand Down
8 changes: 0 additions & 8 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ export function makeFlags<T extends Record<string, FlaggablePrompt>>(flaggablePr
}

export abstract class GeneratorCommand<T extends typeof Command> extends Command {
static baseFlags = {
yes: Flags.boolean({
aliases: ['defaults'],
char: 'y',
description: 'Use defaults for all prompts. Individual flags will override defaults.',
}),
}

protected args!: Args<T>
protected flaggablePrompts!: Record<string, FlaggablePrompt>

Expand Down

0 comments on commit 78a6238

Please sign in to comment.