Skip to content

Collapse install output with task() - #110

Open
duncanmcclean wants to merge 3 commits into
masterfrom
prompts-task
Open

Collapse install output with task()#110
duncanmcclean wants to merge 3 commits into
masterfrom
prompts-task

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jul 31, 2026

Copy link
Copy Markdown
Member

This pull request integrates the task() helper from laravel/prompts into the install process, similar to what the Laravel installer has started doing.

The composer create-project step and git init step currently dump their raw, scrolling command output straight to the terminal. This PR wraps them in a task() instead, which collapses the output into a spinner with a live-updating log, finishing as a single ✔ Installing Statamic / ✔ Initializing Git repository line on success.

This only kicks in when task() and pcntl_fork are available and output is decorated at normal verbosity — otherwise RunsCommands falls back to the existing raw scrolling output, so behaviour is unchanged for --no-ansi, -v, and non-interactive/non-decorated environments.

edalzell and others added 3 commits June 11, 2026 16:27
Wrap the composer create-project and git init steps in RunsCommands
with a Laravel Prompts task(), collapsing the raw scrolling output
into a spinner that finishes as a single checkmark line, matching
what the Laravel installer now does. Falls back to the existing raw
output when task()/pcntl_fork aren't available or output isn't
decorated.
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