Wrong format rabbitmqctl list_permissions #2948
-
rabbitmqctl list_permissions -p vhost-gateway-desktop-sendktop-send
Listing permissions for vhost "vhost-gateway-desktop-send" ...
user configure write read
user-gateway-desktop .* .* ^$
user-service .* ^$ .* wrong tab header when run command Thank |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I will convert this issue to a GitHub discussion. Currently GitHub will automatically close and lock the issue even though your question will be transferred and responded to elsewhere. This is to let you know that we do not intend to ignore this but this is how the current GitHub conversion mechanism makes it seem for the users :( |
Beta Was this translation helpful? Give feedback.
-
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 Bordersrabbitmqctl list_permissions --formatter=pretty_table -q
# => ┌────────┬───────────┬───────┬──────┐
# => │ user │ configure │ write │ read │
# => ├────────┼───────────┼───────┼──────┤
# => │ guest2 │ .* │ .* │ .* │
# => ├────────┼───────────┼───────┼──────┤
# => │ guest │ .* │ .* │ .* │
# => └────────┴───────────┴───────┴──────┘ JSONrabbitmqctl list_permissions --formatter=json | jq that outputs [
{
"user": "guest2",
"configure": ".*",
"write": ".*",
"read": ".*"
},
{
"user": "guest",
"configure": ".*",
"write": ".*",
"read": ".*"
}
] |
Beta Was this translation helpful? Give feedback.
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
JSON
rabbitmqctl list_permissions --formatter=json | jq
that outputs