Add a flag for commands to produce json output #621
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#621
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For some commands, it would be nice to have the option to get the output as json. The commands I would find the most helpful are the ones displaying detailed information about the buckets, keys and layout, like
bucket list
,bucket info
key list
,key info
layout show
but others, like
status
,stats
could also be nice.(For some context, I am trying to write a script that ensures the layout, keys and buckets in garage match the ones I want and json output would be a nice way to retrieve the current state.)
In the meantime, you can use the admin api with curl
Thanks, that suggestion works very well for my use-case