Tags: grafst/prompts
Tags
Support for custom validation and aliases (laravel#102) * Add "as" and update "validate" type * Support custom validation and alias * Test custom validation and aliases * Ignore new PHPStan error * Fix code styling * Add "as" and update "validate" type * Remove aliases * Update Prompt.php --------- Co-authored-by: Jess Archer <[email protected]> Co-authored-by: jessarcher <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
Merge pull request laravel#103 from laravel/fix-phpstan-error Ignore new PHPStan error
Allow empty strings on `select` prompt (laravel#99) * Allow empty string keys on `select` prompts * Remove truthy check on `required`
Support for Symfony v7.0 on Laravel 11 (laravel#93) * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update composer.json --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
Add Progress Bar Helper (laravel#82) * added progress bar * progress bar -> progress * support lazy collections * Formatting * Fix progress bar on narrow terminals * Restore cursor after Ctrl+C * Remove LazyCollection support * Allow passing steps as an integer * Allow advancing multiple steps * Allow returning the results of the callback * Allow passing a hint * Display progress * messing with updating the label in real time * add canceled state to progress on ctrl c * Add setters for label and hint * allow for an empty title * label is now optional * Make progress evenly spaced * Improve method name * Alternative approach to optional label * Fix code styling * Remove overloading * Remove overloaded methods --------- Co-authored-by: Jess Archer <[email protected]> Co-authored-by: jessarcher <[email protected]>
[0.1.x] `spin`: Ensure process termination on `$callback()` failure (l… …aravel#71) * Kill process if callback fails * initialize pid outside try catch * Add reset terminal function to reset lines when callback is finished or when callback fails * pid should not be undefined * Update docblock to follow contribution guidelines * Remove redundant comments * Passing pid only if we have one * Restore terminal on static spin failure * Make dynamic and static spin logic consistent * Formatting --------- Co-authored-by: Jess Archer <[email protected]>
Add view state for scroll prompts (laravel#43) * Add view state for scroll prompts * Fix search and suggest prompt view state not create bug * Add reset for suggest and search prompt * Fix search and suggest view state reset time * Add zero count reset for view state * Use view state instead of highlighted value to calculate scrollbar * Formatting * Refactor --------- Co-authored-by: Jess Archer <[email protected]>
PreviousNext