grafana / unused

CLI tool, Prometheus exporter, and Go module to list your unused disks in all cloud providers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It's unclear what will happen when you run command

fedordikarev opened this issue · comments

For a moment I was a bit scared of running the unused -gcp.project=some_project -i -filter=kubernetes.io/created-for/pvc/namespace=some_name command, because I didn't know if it was going to start deleting things right away.

As one option we could rename or add -interactive flag. Maybe even -list-interactive so it will be clear that not any disk will be deleted running that command.

🤔 I'm not sure that changing the name of the flag would make it clearer. Perhaps we should rewrite the programs help/documentation to make it clear.

One idea that comes to my mind: we could change flag and make new one: -mode <mode> with default ui or interactive.
And others like list, list-group-by, csv-export, batch-delete

another idea: introduce flag -read-only or -dry-run that will disable delete functionality

Dry run mode has been merged in #61.