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

refactor: output options #163

Closed
Ephigenia opened this issue May 10, 2021 · 1 comment
Closed

refactor: output options #163

Ephigenia opened this issue May 10, 2021 · 1 comment
Assignees
Labels
enhancement feature enhancement or refactors

Comments

@Ephigenia
Copy link
Owner

Context

The "output" option doesn’t follow standards described in https://clig.dev/#output

Description

Current Options and their possible successor(s)

  • csv
    • mite list --json | jq '.[] | @csv'
  • json
    • mite list --json
  • markdown
    • mite list --json | jq '.[] | @csv' | npx csv2md (using csv2md to convert the csv input to markdown)
  • table (default)
    • mite list --pretty
  • text
    • mite list --plain outputs tabular data, seperated with 3 spaces
    • with aligning columns mite list --plain | column -t
  • tsv
    • mite list --json | jq '.[] | @csv'
@Ephigenia Ephigenia added the enhancement feature enhancement or refactors label May 10, 2021
@Ephigenia Ephigenia self-assigned this May 10, 2021
Ephigenia added a commit that referenced this issue May 10, 2021
BREAKING: removes the "--format" option and replaces it with "--plain", "--pretty" and "--json" which is a better way of specifying the output format.

The csv, tsv and markdown options have been removed and must be created using additional tools like jq or csv2md.
@Ephigenia
Copy link
Owner Author

part of the next breaking release

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

No branches or pull requests

1 participant