Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function _printHelp() {
--beta: install @beta version of Playwright
--ct: install Playwright Component testing
--quiet: do not ask for interactive input prompts
--gha: install GitHub Actions
--gha: create GitHub Actions workflow
--no-gha: do not create GitHub Actions workflow
--lang=<js>: language to use (default: 'TypeScript'. Potential values: 'js', 'TypeScript')
`);
}
6 changes: 4 additions & 2 deletions src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type CliArgumentKey = 'browser'
| 'ct'
| 'quiet'
| 'gha'
| 'no-gha'
| 'install-deps'
| 'lang';

Expand Down Expand Up @@ -129,8 +130,9 @@ export class Generator {
type: 'confirm',
name: 'installGitHubActions',
message: 'Add a GitHub Actions workflow?',
initial: !!this.options.gha,
skip: !!this.options.gha,
// Default to false, even when --no-gha not passed
initial: !!this.options['no-gha'] ? false : !!this.options.gha,
skip: !!this.options['no-gha'] || !!this.options.gha,
},
{
type: 'confirm',
Expand Down