Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Piping -o yaml > file.yml to file adds color information to the file #119

Open
wjhrdy opened this issue Jan 19, 2023 · 2 comments
Open

Piping -o yaml > file.yml to file adds color information to the file #119

wjhrdy opened this issue Jan 19, 2023 · 2 comments

Comments

@wjhrdy
Copy link

wjhrdy commented Jan 19, 2023

using kubecolor with oc

running this command
oc adm create-bootstrap-project-template -o yaml > /tmp/project-template.yaml

creates a file that looks like this.

CleanShot 2023-01-19 at 13 55 45

A simple fix is to escape the alias.

\oc adm create-bootstrap-project-template -o yaml > /tmp/project-template.yaml

I realize this is outside of the intended scope.
Just thought I'd report in case anyone else has the issue.

@Pluggi
Copy link

Pluggi commented Feb 7, 2023

@mhkarimi1383
Copy link

mhkarimi1383 commented May 31, 2023

I'm having the same issue (without --force-colors)

type kubectl                                                                                                                                130 ↵
  kubectl is an alias for kubecolor

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

No branches or pull requests

3 participants