mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Scuemata: Add grafana-cli command to validate resources against scuemata (#33852)
* Add validate-resource cli command * Fixes according to reviewer's comments
This commit is contained in:
committed by
GitHub
parent
93db2a099b
commit
bfcf82f861
@@ -140,6 +140,17 @@ var cueCommands = []*cli.Command{
|
||||
Usage: "validate *.cue files in the project",
|
||||
Action: runPluginCommand(cmd.validateScuemataBasics),
|
||||
},
|
||||
{
|
||||
Name: "validate-resource",
|
||||
Usage: "validate *.cue files in the project",
|
||||
Action: runPluginCommand(cmd.validateResources),
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "dashboard",
|
||||
Usage: "dashboard JSON file to validate",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Commands = []*cli.Command{
|
||||
|
||||
Reference in New Issue
Block a user