Add -format=json
flag to the ACL CLI commands
#7141
Labels
good first issue
A well-defined bug or improvement with sufficient context which should be approachable for new contr
help-wanted
We encourage community PRs for these issues!
theme/acls
ACL and token generation
theme/operator-usability
Replaces UX. Anything related to making things easier for the practitioner
type/enhancement
Proposed improvement or new feature
Feature Description
After reviewing some of the upcoming guide updates for ACLs it seemed like allowing these CLI commands to output the JSON response instead of the normal formatting might be better in some cases. This would be particularly useful if we want to post-process the result with
jq
or some other tool to grab a token secret or policy id.This request is to add a
-format
option that defaults topretty
(our default format) but has the option to be specified asjson
and in that case we will just output the JSON response.The text was updated successfully, but these errors were encountered: