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

Tabularize data outputs #4

Open
anonimitoraf opened this issue Jul 14, 2023 · 0 comments
Open

Tabularize data outputs #4

anonimitoraf opened this issue Jul 14, 2023 · 0 comments

Comments

@anonimitoraf
Copy link

It would be nice to display outputs as a table (or at least an option to). It's convenional for command line tools to display tabularized output for other cli tools to process (e.g. awk)

For example (the output for a collection's details):

Fields:
id:       REDACTED
name:     Post Summary
slug:     post-summary
draft:    false
archived: false
editable: true
required: false

id:       REDACTED
name:     Key Learning
slug:     key-learning-2
draft:    false
archived: false
editable: true
required: false

id:       REDACTED
name:     Post Body
slug:     post-body
draft:    false
archived: false
editable: true
required: true

id:       REDACTED
name:     Main Image
slug:     main-image
draft:    false
archived: false
editable: true
required: false

instead displayed as:

 id        name          slug            draft  archived  editable  required 
 REDACTED  Post Summary  post-summary    false  false     true      false    
 REDACTED  Key Learning  key-learning-2  false  false     true      false    
..and so on

I'm aware of concerns like needing horizontal scrolling but this can be achieved by using less -S as a horizontal "scroller" for example

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

No branches or pull requests

1 participant