Skip to content

Unified Cli renderer options incompatible with Main renderer options. #60

Description

@DigiLive

The UnifiedCli renderer has option cliColor whose only valid value is simple
$this->options['cliColor'] == 'simple'

The Main renderer has the following options:

    /**
     * @var array   Associative array containing the default options available for this renderer and their default
     *              value.
     *              - tabSize           The amount of spaces to replace a tab character with.
     *              - format            The format of the input texts.
     *              - cliColor          Colorized output for cli.
     *              - deleteMarkers     Markers for removed text.
     *              - insertMarkers     Markers for inserted text.
     *              - equalityMarkers   Markers for unchanged and changed lines.
     *              - insertColors      Fore- and background color for inserted text. Only when cloColor = true.
     *              - deleteColors      Fore- and background color for removed text. Only when cloColor = true.
     */
    protected $mainOptions = [
        'tabSize'         => 4,
        'format'          => 'plain',
        'cliColor'        => false,
        'deleteMarkers'   => ['', ''],
        'insertMarkers'   => ['', ''],
        'equalityMarkers' => ['', ''],
        'insertColors'    => ['black', 'green'],
        'deleteColors'    => ['black', 'red'],
    ];

Option cliColor should be of type boolean and when true the output should be colorized using the colors defined at options insertColors and deleteColors.

btw... The comments in the code block above contains typos as well: cloColor instead of cliColor
See

* - insertColors Fore- and background color for inserted text. Only when cloColor = true.
and
* - deleteColors Fore- and background color for removed text. Only when cloColor = true.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions