grafana-tools / grafana-backup

[ON HOLD] CLI tool for backup/restore Grafana dashboards and datasources.
GNU General Public License v3.0
28 stars 3 forks source link

Add a command line flag to specify a default output directory #2

Closed omadawn closed 6 years ago

omadawn commented 6 years ago

I don't know about you but when I download some go code for the first time I usually end up running it from within the directory itself at least the first few times. That can make things a little awkward when a command dumps a whole lot of files into CWD.

I'd like a -dir flag which has a default value, perhaps "backups" and already have code to implement it.

grafov commented 6 years ago

Default dir is reasonable behavior for safety. I will implement it or you could add PR.

grafov commented 6 years ago

Thank you! And check my last comment for the #13.