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

Print formatting options #14

Closed
trietsch opened this issue Jul 8, 2021 · 1 comment
Closed

Print formatting options #14

trietsch opened this issue Jul 8, 2021 · 1 comment

Comments

@trietsch
Copy link
Contributor

trietsch commented Jul 8, 2021

Let's print non-verbose info by default (e.g. when listing streams, only list the names and maybe whether they're a source/derived stream).
Flags instruct the CLI to print more, like:

  • --output table, prints all information as a table (see kubectl get pods as an example), where e.g. stream type (source / derived) is also shown as a column.
  • --output plain, prints only reference names as plain text
  • --output json-raw, prints all information in a raw unformatted JSON
  • --output json, prints all information pretty

--output short would be -o.
The default should be configurable through the config file. The default if no preference is given, then the fallback is table.

@trietsch trietsch changed the title By default, print info non-verbose - print more when requested Print formatting options Aug 13, 2021
github-actions bot pushed a commit that referenced this issue Aug 18, 2021
# [1.6.0](v1.5.0...v1.6.0) (2021-08-18)

### Features

* **batch-exporters:** implement plain, table, json, json-raw printers for batch-exporters ([1a8ebc0](1a8ebc0))
* **event-contract:** create event contract now partially asks for cli flags and a definition ([dfa0d74](dfa0d74)), closes [#33](#33)
* **event-contracts:** implement plain, table, json, json-raw printers for event-contracts ([8f5931f](8f5931f))
* **kafka-clusters:** implement plain, table, json, json-raw printers for kafka-clusters ([6dbe06e](6dbe06e))
* **kafka-exporters:** implement plain, table, json, json-raw printers for kafka-exporters ([04ee444](04ee444))
* **kafka-users:** implement plain, table, json, json-raw printers for kafka-users ([fa6473e](fa6473e))
* **key-streams:** implement plain, table, json, json-raw printers for key-streams ([e8efd41](e8efd41))
* **printers:** added interface for printers; implemented list streams printer ([39b183a](39b183a)), closes [#14](#14)
* **schemas:** implement plain, table, json, json-raw printers for schemas ([f205174](f205174))
* **sinks:** implement plain, table, json, json-raw printers for sinks ([6dc2c77](6dc2c77))
* **streams:** implement plain, table, json, json-raw printers for streams ([7d10c42](7d10c42))
* **usage:** added missing column in usage csv ([4af404d](4af404d))
* **usage:** implement csv, json, json-raw printers for usage ([6e96b2e](6e96b2e))
@trietsch
Copy link
Contributor Author

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