1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-21 12:16:54 +02:00
lazygit/pkg/jsonschema/generator.go
Karim Khaleel 30e9bf8a75 Use refs in jsonschema userconfig generator
This makes it possible to use recursive structures in the user config.
2025-02-23 20:55:28 +01:00

16 lines
273 B
Go

//go:build ignore
package main
import (
"fmt"
"github.com/jesseduffield/lazygit/pkg/jsonschema"
)
func main() {
fmt.Printf("Generating jsonschema in %s...\n", jsonschema.GetSchemaDir())
schema := jsonschema.GenerateSchema()
jsonschema.GenerateConfigDocs(schema)
}