Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to disable output styling #1211

Open
scottyeager opened this issue Sep 25, 2024 · 0 comments
Open

Add flag to disable output styling #1211

scottyeager opened this issue Sep 25, 2024 · 0 comments
Assignees
Labels
grid-cli belongs to grid cli tfrobot type_feature New feature or request
Milestone

Comments

@scottyeager
Copy link

Currently all info logged by tfcmd (I believe tfrobot too) gets styled with colors and bold text using terminal escape sequences. This is not ideal when capturing and parsing this output.

Even the json returned from get commands is wrapped in escape sequences:

$ tfcmd get vm myctest &> output
$ cat -v output

...
	"ContractID": 668773,
	"IPrange": "10.20.2.0/24"
}^[[0m

I'd suspect that the logging library we use has an option to disable the styles. If we can just expose that to the user as a cli flag, that would be a quick fix to improve the situation.

@scottyeager scottyeager added type_feature New feature or request grid-cli belongs to grid cli tfrobot labels Sep 25, 2024
@ramezsaeed ramezsaeed modified the milestones: v0.16.x, v0.17.x Sep 29, 2024
@Eslam-Nawara Eslam-Nawara self-assigned this Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grid-cli belongs to grid cli tfrobot type_feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants