Skip to content

Wrong format rabbitmqctl list_permissions #2948

Discussion options

You must be logged in to vote

I'm afraid I do not see what exactly is "wrong" here, perhaps you should elaborate.

The headers are not padded (aligned) but they do match the actual columns. This commands supports two formatters that make it easier to parse or read the output:

Padded Table with Borders

rabbitmqctl list_permissions --formatter=pretty_table -q
# => ┌────────┬───────────┬───────┬──────┐
# => │ user   │ configure │ write │ read │
# => ├────────┼───────────┼───────┼──────┤
# => │ guest2 │ .*        │ .*    │ .*   │
# => ├────────┼───────────┼───────┼──────┤
# => │ guest  │ .*        │ .*    │ .*   │
# => └────────┴───────────┴───────┴──────┘

JSON

rabbitmqctl list_permissions --formatter=json | jq

that outputs

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2947 on April 02, 2021 13:34.