mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Schema: introduce CLI command to convert all CUE files to TS (#39694)
* First pass at cuetsify command
* Update go deps
* Small tweaks to input cue files
* Correct ts import structure, whitespace
* Latest version of cuetsy
* add ordinal option
* upate cue file
* Fix merge garbage
* Remove dead code
* Revert "upate cue file"
This reverts commit e40b1df83e.
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
@@ -169,6 +169,19 @@ so must be recompiled to validate newly-added CUE files.`,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "gen-ts",
|
||||
Usage: "generate TypeScript from all known CUE file types",
|
||||
Description: `gen-ts generates TypeScript from all CUE files at
|
||||
expected positions in the filesystem tree of a Grafana repository.`,
|
||||
Action: runCueCommand(cmd.generateTypescript),
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{
|
||||
Name: "grafana-root",
|
||||
Usage: "path to the root of a Grafana repository in which to generate TypeScript from CUE files",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var Commands = []*cli.Command{
|
||||
|
||||
Reference in New Issue
Block a user