Skip to content

[Proposal] Verbosity added to Console\Command wrappers #45

Closed
@robclancy

Description

@robclancy

There is no simply way I see with Symfony's Console components to only write if --verbose is set. I have had to do a heap of if ($this->verbosity() > 1) to get the effect myself. So I propose you add a second variable to your wrapper methods in Console\Command... as in info($string), error($string) etc. Simply add an optional second variable to only output if a certain verbosity is set.

I have already done it on an App I am making that uses your console component.
https://github.com/bigelephant/xf-console/blob/master/src/BigElephant/XfConsole/Command.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions