tektoncd / tektoncd/cli

Add a way to always do colouring

Open
#631 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
Dominant language
Go
Stars
461
Forks
277
Avg merge
16h 48m
Merged PRs (30d)
95

Description

We currently disable coulouring when piping or other reasons. It woudl be nice
if we can have a way to enable it, i would suggest that we mimic the grep
command --color flag (implemented by others), i.e: from the manpage :

--colour=[when, --color=[when]]
Mark up the matching text with the expression stored in GREP_COLOR environment variable.  The possible values of when can be `never',
`always' or `auto'.

/kind feature

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CLI's existing colouring behavior and the command output path used when results are piped. Compare its handling with grep's --color/--colour modes, then define completion as supporting never, always, and auto behavior so piped output can be explicitly coloured.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.