grafana / unused

CLI tool, Prometheus exporter, and Go module to list your unused disks in all cloud providers
Apache License 2.0
51 stars 1 forks source link

cmd/unused: add -sort flag #7

Open inkel opened 2 years ago

inkel commented 2 years ago

Add a -sort=field flag that should match one of the unused.ByFunc functions. Currently we only support sorting by provider name, disk name, and disk creation date.

Stretch: consider also adding a ByMeta function that allow passing a metadata key to be used for sorting.