Skip to content
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

[Feature request] Make it easier to style command help-text with Termwind #430

Open
mortenscheel opened this issue Nov 5, 2022 · 0 comments

Comments

@mortenscheel
Copy link

If Symfony commands have a protected $help attribute defined, it will render this text in an extra "Help:" section at the bottom when invoking the command with --help. This text can be multi-line, and it doesn't have to follow any specific format.

I was able to get Termwind to render the contents of $help like this:

protected function configure()
{
    parent::configure();
    $buffer = new BufferedOutput(decorated: true);
    renderUsing($buffer);
    render($this->help);
    renderUsing($this->output);
    $this->help = $buffer->fetch();
}

It would be awesome if this could be made easier, both in Zero and in regular Laravel commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant