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

Feature: add -filter flag to cmd/unsued #8

Closed inkel closed 2 years ago

inkel commented 2 years ago

This PR adds a cli.FilterFlag type to indicate filters via CLI flags. It also adds a naive filtering implementation once the disks are returned from the providers; a future enhancement would be to propagate the filter to the providers. It also only implements one flag per cmd/unused invocation rather the many indicated in the issue; it's a valid solution for an MVP.

Fixes #6