diff --git a/.codegen.json b/.codegen.json index 5604f6a86..61a2fe851 100644 --- a/.codegen.json +++ b/.codegen.json @@ -11,10 +11,10 @@ "toolchain": { "required": ["go"], "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 '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" ] } } diff --git a/bundle/internal/schema/schema.generated.json b/cmd/bundle/_generated/jsonschema.json similarity index 100% rename from bundle/internal/schema/schema.generated.json rename to cmd/bundle/_generated/jsonschema.json diff --git a/cmd/bundle/schema.go b/cmd/bundle/schema.go index 9938ee14f..6d1bf90ca 100644 --- a/cmd/bundle/schema.go +++ b/cmd/bundle/schema.go @@ -13,6 +13,8 @@ func newSchemaCommand() *cobra.Command { } cmd.RunE = func(cmd *cobra.Command, args []string) error { + // os.ReadFile() + // // Load embedded schema descriptions. // docs, err := schema.LoadBundleDescriptions() // if err != nil {