Skip to content

Conversation

@jakedoublev
Copy link
Contributor

@jakedoublev jakedoublev commented Mar 13, 2024

  1. Adds a tructl.yaml config to drive things like global CLI output format
  2. Adds global command tructl config output --format <'json' | 'styled'> that updates the config file
  3. Maintains support for global command --json to output a single run of the CLI as json but not overwrite the config
  4. Reads the --json and config for output format
  5. Unifies success handling throughout all existing policy flows to print styled output or JSON as applicable

Closes #30

@jakedoublev
Copy link
Contributor Author

@jrschumacher jrschumacher merged commit 69b7792 into main Mar 20, 2024
@jrschumacher jrschumacher deleted the feat/json-output branch March 20, 2024 16:31
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

Successfully merging this pull request may close these issues.

Add CLI global output flag for JSON response

3 participants