Skip to content

Terminal "niceties" make it difficult to script coder #1322

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

Closed
ammario opened this issue May 6, 2022 · 1 comment · Fixed by #1363
Closed

Terminal "niceties" make it difficult to script coder #1322

ammario opened this issue May 6, 2022 · 1 comment · Fixed by #1363
Assignees
Labels
api Area: HTTP API
Milestone

Comments

@ammario
Copy link
Member

ammario commented May 6, 2022

We know that many of our customers build automation around the CLI. We should expect this behavior to continue in v2.

This table style makes such workflows quite difficult:
Screen Shot 2022-05-06 at 11 12 01 AM

For example, if I want to use simple head:

Screen Shot 2022-05-06 at 11 12 29 AM

Or... I want everyone's usernames:
image

Solutions

  1. Replace all nice tables with a traditional UNIX format
  2. Emit traditional UNIX table when stdout is not a TTY
  3. Add global flag (e.g --csv) to coerce all output into a machine-friendly format

In the interest of MVP, I think 1 is best.

@kylecarbs
Copy link
Member

I'll be adjusting this to use a kubernetes-similar table format!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants