• Resolved aspsa

    (@aspsa)


    I am running the WP CLI via my Local by FlyWheel development environment. The DecaLog CLI help under “Colors scheme” provides two flags: –soft and –no-color. I have a couple of questions:

    1. Can you please provide the full command for changing the color scheme?
    2. The default blue-ish/purple-ish color is a bit tough on the eyes against the default black background of the CLI screen. Would you consider allowing an end user to store a collection of color scheme ‘presets’, where one can store combinations of foreground and background colors for textual CLI display?

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @aspsa !

    1: thank you for bringing this matter to my attention, there’s a bug in the synopsis that doesn’t allow to use flag for the tail command. Normally, this should be usable in a “classical” way (wp log tail --soft or wp log tail --no-color) but this is not the case with the current version. This will be fixed in 2.4.1 (released planed before 3/3/21).
    2: I have no plan to add a way to do that. But this can be done in 2 ways:
    – I can add new presets if you have something specific to send me. Give me colors you want (selected in these ones) and I will create a “aspsa” theme ??
    – Submit a PR on the DecaLog repo

    Don’t hesitate to ask if you have any question for the second point.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Note if you want to submit a PR, I’ve simplified the way colors are handled.
    See https://github.com/Pierre-Lannoy/wp-decalog/blob/master/includes/features/class-wpcli.php file ??

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    I’m closing this due to inactivity.

    Thread Starter aspsa

    (@aspsa)

    Thanks for the feedback. I updated to v2.4.2, but the fix you mentioned does not seem to function. Please advise how I can now disable the default color in the plugin’s CLI. Thank you.

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @aspsa !
    What command do you type? As stated below, to simplify the way users can submit PRs, the flag is changed. It’s now --theme=soft. Do you confirm it’s not working for you?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CLI Color Scheme’ is closed to new replies.