move gen file

This commit is contained in:
Shreyas Goenka 2024-08-27 13:35:56 +02:00
parent 5b7974757d
commit ac60163c19
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
3 changed files with 4 additions and 2 deletions

View File

@ -11,10 +11,10 @@
"toolchain": { "toolchain": {
"required": ["go"], "required": ["go"],
"post_generate": [ "post_generate": [
"go run ./bundle/internal/schema/*.go ./bundle/internal/schema/schema.generated.json", "go run ./bundle/internal/schema/*.go ./cmd/bundle/_generated/jsonschema.json",
"echo 'bundle/internal/tf/schema/\\*.go linguist-generated=true' >> ./.gitattributes", "echo 'bundle/internal/tf/schema/\\*.go linguist-generated=true' >> ./.gitattributes",
"echo 'go.sum linguist-generated=true' >> ./.gitattributes", "echo 'go.sum linguist-generated=true' >> ./.gitattributes",
"echo 'bundle/schema/docs/schema.generated.json linguist-generated=true' >> ./.gitattributes" "echo 'cmd/bundle/_generated linguist-generated=true' >> ./.gitattributes"
] ]
} }
} }

View File

@ -13,6 +13,8 @@ func newSchemaCommand() *cobra.Command {
} }
cmd.RunE = func(cmd *cobra.Command, args []string) error { cmd.RunE = func(cmd *cobra.Command, args []string) error {
// os.ReadFile()
// // Load embedded schema descriptions. // // Load embedded schema descriptions.
// docs, err := schema.LoadBundleDescriptions() // docs, err := schema.LoadBundleDescriptions()
// if err != nil { // if err != nil {