-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
[Proposal] Modify output behavior; optional newlines and icons #108
Comments
Thanks @philip for this proposal. Since I understood, you propose the following features:
|
I see that PR references
Instead of:
This request was hoping we could optionally automagically wrap output for these commands with newlines without having to add the extra clutter. |
@philip What do you mean exactly about that? Because if I type: $this->error('First error');
$this->error('First error'); |
@nunomaduro Some people want more whitespace. Here are two Laravel Zero applications in the wild that indicate this: This wraps with This wraps with |
@philip I understand your point of view. I am ok with the ->newLine option. Thanks anyway! 👍 |
Applications are finding different ways to insert newlines into messages. The two ways I've seen thus far in real-world Laravel Zero apps:
Neither approach seems ideal. Could there be a better way? The following feels right:
Related and while we're here, what if we could also (optionally) enable icons for these? For example, maybe
info()
could be configured to prepend(i)
or similar so these stand out a little more. For my use case, app output includes stdout fromProcess
commands so prepending icons to Laravel Zero output could make it stand out a bit.All thoughts and idea improvements are welcome :)
The text was updated successfully, but these errors were encountered: