grafana / grizzly

A utility for managing Jsonnet dashboards against the Grafana API
https://grafana.github.io/grizzly/
Apache License 2.0
514 stars 66 forks source link

`grr serve`: Warn if no resource path provided #431

Closed julienduchesne closed 5 months ago

julienduchesne commented 5 months ago

This can be confusing. I expected the current dir to be used

malcolmholmes commented 5 months ago

This is needed for embedding into an IDE (such as @K-Phoen is exploring) when there is no initial set of resources to review.

julienduchesne commented 5 months ago

This is needed for embedding into an IDE (such as @K-Phoen is exploring) when there is no initial set of resources to review.

hmm, can we print a warning then? I was confused. I expected it to use my current dir

malcolmholmes commented 5 months ago

Hmmm, or use a switch (-n or --no-resources) to tell it that you don't have anything to parse. Without the switch, throw an error.