m110 / grafcli

Grafana CLI for quick and easy dashboards management.
MIT License
168 stars 20 forks source link

Question about intended implementation of * in export/import #19

Open jgoff opened 7 years ago

jgoff commented 7 years ago

hi @m110 ,

Thanks for this tool, was about to embark on writing a much less comprehensive version until I stumbled upon this. For my use, I am looking to to add basic wildcard support for import/export in order to allow me to move a whole bunch of dashboards from a development Grafana server into SCM and also propagated out to a bunch of production Grafana servers.

As such, when you mention in the readme you are planning to handle "*", did you imagine it would be for partial name matches or just for "all", e.g.

export remote/server123/ /somewhere/exports/server123 or, should it support export remote/server123/xyzthing /somewhere/exports/server123

My use case only requires * for export and import, let me know if that's useful enough to bother with a pull request.

-jeff

m110 commented 7 years ago

Hi Jeff!

My initial idea was to add full wildcard support like in bash, but IMO even the basic "all" version will be great and should suit most use cases. Should be also pretty easy to extend it later. Thanks for contributing and please add a pull request!