Bash *? wildcard support for remote resource export/import #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
hi Miłosz,
So here is the basic working first version. No doubt there will be a bunch of stylistic concerns (in some cases I have steered clear of changing certain things that seem obvious to change, for example not hacking at 'list' rather just adding 'list_path').
Outside of the readme, I'll mention again my use case which is entirely batch mode. I use some dev machine to create dashboards, then export them out so they can be stored in SCM. Once in SCM (in the future will have a commit trigger to do this automagically), I push (import) them out to the production hosts, e.g.
`
./grafcli export remote/dev/* $SCMROOT/grafana/dashboards
for h in
cat prod_hosts.txt
; do./grafcli import $SCMROOT/grafana/dashboards remote/$h
done
`
There are a few caveats listed in the Readme.md.
By all means suggest ways you would prefer to see this refactored or changed to fit your code base or code style, it's your project.
thx
-jeff