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

[Feat] Exit prompt confirmation #219

Merged
merged 5 commits into from
Oct 11, 2023
Merged

[Feat] Exit prompt confirmation #219

merged 5 commits into from
Oct 11, 2023

Conversation

SonyPradana
Copy link
Owner

@SonyPradana SonyPradana commented Oct 11, 2023

  • windows support
  • unix (pcntl*) support

@SonyPradana SonyPradana marked this pull request as ready for review October 11, 2023 17:01
@anggerpradana
Copy link
Collaborator

  • windows support
  • unix (pcntl*) support

pcntl not full cover test, pr welcome if found bug in features

*/
function exit_prompt($title, array $options = null): void
{
$signal = defined('SIGINT') ? constant('SIGINT') : 2;
Copy link
Collaborator

Choose a reason for hiding this comment

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

if no constant changes why not using fix parameters (in case 2).

Copy link
Owner Author

Choose a reason for hiding this comment

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

not sure but will be change

Comment on lines +217 to +218
$signal = defined('SIGINT') ? constant('SIGINT') : 2;
$default = defined('SIG_DFL') ? constant('SIG_DFL') : 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

if no constant changes why not using fix parameters (in case 2 and 0).

Repository owner deleted a comment from anggerpradana Oct 11, 2023
@SonyPradana SonyPradana merged commit 9209ef5 into master Oct 11, 2023
6 checks passed
@SonyPradana SonyPradana deleted the exit-prompt branch October 11, 2023 17:19
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.

2 participants