Skip to content
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

Add allowNonzeroExitCode option #176

Merged
merged 7 commits into from Jul 19, 2020
Merged

Conversation

peterchu999
Copy link
Contributor

@peterchu999 peterchu999 commented Apr 27, 2020

fixing issue using #161 as reference

Fixes #86

@sindresorhus sindresorhus changed the title adding options allowNonZeroExitCode for issue #86 Add allowNonzeroExitCode option May 4, 2020
index.d.ts Outdated

/**
Use to allow non zero exit code.
the convention for success exit code was 0, But in some cases there is an app that doesn't return 0 for the success exit code.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put some more effort into this text.

index.d.ts Outdated
Use to allow non zero exit code.
the convention for success exit code was 0, But in some cases there is an app that doesn't return 0 for the success exit code.

@default true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be true by default.

index.d.ts Outdated
the convention for success exit code was 0, But in some cases there is an app that doesn't return 0 for the success exit code.

@default true
*/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*/
*/

index.d.ts Outdated
@@ -42,6 +42,14 @@ declare namespace open {
@default false
*/
readonly url?: boolean;

/**
Use to allow non zero exit code.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use to allow non zero exit code.
Use to allow nonzero exit code.

@peterchu999
Copy link
Contributor Author

okay i'll try to make it better

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
readme.md Outdated
Type: `boolean`\
Default: `false`

Option to allow the opened app resolve the promise with nonzero exit code when `wait` option value `true`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The readme docs should be in sync with the index.d.ts. The text here is different.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so sorry i miss the README

@sindresorhus sindresorhus merged commit e009765 into sindresorhus:master Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reject on return code > 0
2 participants