-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cache commands, --no-exit #1875
Conversation
cli/lib/cli.js
Outdated
program | ||
.command('cache') | ||
.usage('[command]') | ||
.description('Manage the Cypress binary cache') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update 'Manage' to 'Manages' to keep in line with other commands having plural verb descriptors, ie: 'Opens ...', 'Installs ...', 'Verifies ...'?
Does this also close #817 about |
cli/__snapshots__/cli_spec.js
Outdated
@@ -105,6 +106,7 @@ exports['cli help command shows help 1'] = ` | |||
open [options] Opens Cypress in the interactive GUI. | |||
install [options] Installs the Cypress executable matching this package's version | |||
verify Verifies that Cypress is installed correctly and executable | |||
cache [options] Manage the Cypress binary cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optimally this should say cache <command>
I'm confused why there is code in like |
@jennifer-shehane whoops, forgot to remove that commit |
@jennifer-shehane fixed |
cli/lib/exec/run.js
Outdated
@@ -74,6 +74,10 @@ const processRunOptions = (options = {}) => { | |||
args.push('--headed', options.headed) | |||
} | |||
|
|||
if (options.noExit) { | |||
args.push('--no-exit') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no tests for this, and the logic is broken because you're not testing options.exit === false
in here
cli/lib/cli.js
Outdated
.option('--dev', text('dev'), coerceFalse) | ||
.action((opts) => { | ||
// console.log(opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line
cli/lib/cli.js
Outdated
unknownOption.call(this, `cache ${opts}`, 'sub-command') | ||
} | ||
cache[opts]() | ||
// this.outputHelp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line
close #1856
cypress cache <command>
close #1871
--no-exit