Skip to content

Consolidate output options into --output-format / -of flag #253

Closed
@tarkatronic

Description

@tarkatronic

Feature Request

Is your feature request related to a problem? Please describe.

During the discussion that resulted in #239, we talked about the current output formats, the various options to trigger them, along with any possible future formats, and decided that it would be best to combine them into a single option. There really is only ever one applicable output format, making them somewhat mutually exclusive, so this will both improve the user experience and reduce complexity in the code.

Describe the solution you'd like

The following options should be removed:

  • --json / --no-json
  • --compact / --no-compact

The following option should be added:

--output-format [json | compact | text] (Default: text)

This also makes for extensibility in the future in case we want, for example, --output-format [toml | yaml] or whatever else. This will also be easier to document and logic around in the code.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions