Skip to content

[6.x] Use standard console output helpers in commands - #15092

Merged
jasonvarga merged 5 commits into
6.xfrom
console-command-output-cleanup
Aug 5, 2026
Merged

[6.x] Use standard console output helpers in commands#15092
jasonvarga merged 5 commits into
6.xfrom
console-command-output-cleanup

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Jul 31, 2026

Copy link
Copy Markdown
Member

This pull request replaces the custom checkInfo/crossLine/checkLine helper methods on EnhancesCommands with the standard $this->components->info()/error()/warn() output, matching the convention already used elsewhere (e.g. Multisite, MakeUser).

This PR also switches the license key prompt in ProEnable over to Laravel Prompts' text(), consistent with other interactive commands.

It also updates a couple of other commands.

duncanmcclean and others added 5 commits July 30, 2026 21:34
replaces the custom checkInfo/crossLine helpers with $this->components->info()/error()/warn(), matching the style already used elsewhere. also switches the license key prompt in `ProEnable` to Laravel Prompts' `text()`.
…ands

no longer used now that commands use \$this->components for output.
The call sites have moved to the standard console output components, but
these are public methods on a public trait that addons may use for their
own commands, so removing them in a minor would break them. Deprecated
instead, for removal in the next major.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jasonvarga jasonvarga changed the title [6.x] Use standard console output helpers in pro/license commands [6.x] Use standard console output helpers in commands Aug 5, 2026
@jasonvarga

Copy link
Copy Markdown
Member

Since nothing uses checkInfo/crossLine/checkLine anymore, this PR removes them from EnhancesCommands.

These are public methods so addons might be using them. I've brought them back and deprecated them.

@jasonvarga
jasonvarga enabled auto-merge (squash) August 5, 2026 16:33
@jasonvarga
jasonvarga merged commit 5a1eaca into 6.x Aug 5, 2026
23 checks passed
@jasonvarga
jasonvarga deleted the console-command-output-cleanup branch August 5, 2026 16:45
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