-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Conversation
allowNonzeroExitCode
option
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. |
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.
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 |
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.
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 | ||
*/ |
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.
*/ | |
*/ |
index.d.ts
Outdated
@@ -42,6 +42,14 @@ declare namespace open { | |||
@default false | |||
*/ | |||
readonly url?: boolean; | |||
|
|||
/** | |||
Use to allow non zero exit code. |
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.
Use to allow non zero exit code. | |
Use to allow nonzero exit code. |
okay i'll try to make it better |
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`. |
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.
The readme docs should be in sync with the index.d.ts. The text here is different.
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.
so sorry i miss the README
fixing issue using #161 as reference
Fixes #86