laravel / prompts

Beautiful and user-friendly forms for your command-line PHP applications.
https://laravel.com/docs/prompts
MIT License
532 stars 94 forks source link

prompts are no longer displaying messages/labels #163

Closed HichemTab-tech closed 2 months ago

HichemTab-tech commented 2 months ago

Laravel Prompts Version

0.1.25

Laravel Version

11.23.1

PHP Version

8.3.11

Operating System & Version

windows 11

Terminal Application

windows cmd or powershell

Description

Issue Description: The prompts are no longer displaying the confirmation messages. While using the confirm function, the label entered as an argument is not being displayed. The confirmation prompt still appears (I can interact with it by pressing Yes, No, or hitting Enter), but the actual message asking for confirmation is missing, which makes it unclear what action is being confirmed ( and it may give the wrong impression that the console is still working or something since nothing shows up).

Steps To Reproduce

Steps to Reproduce:

  1. Use the confirm() function within a command or script.
  2. Provide a label as an argument (e.g., confirm('Are you sure?', true)).
  3. The prompt shows up with interactive Yes/No options, but the label/message is not displayed.

Expected Behavior: The label passed to the confirm() function should be displayed to the user, prompting them for input.

Actual Behavior: No label is displayed. The prompt itself works, but the message is missing.

Context: I discovered this issue while working on an enhancement for the Jetstream package to improve its functionality. I was planning to open a Pull Request (PR) for this enhancement. However, I ran into this issue because Jetstream also uses the same prompts package, and the problem affects the display of prompts across both packages.

Environment: