7 "github.com/charmbracelet/crush/internal/config"
8 "github.com/invopop/jsonschema"
9 "github.com/spf13/cobra"
12var schemaCmd = &cobra.Command{
14 Short: "Generate JSON schema for configuration",
15 Long: "Generate JSON schema for the crush configuration file",
17 RunE: func(cmd *cobra.Command, args []string) error {
18 reflector := new(jsonschema.Reflector)
19 bts, err := json.MarshalIndent(reflector.Reflect(&config.Config{}), "", " ")
21 return fmt.Errorf("failed to marshal schema: %w", err)
23 fmt.Println(string(bts))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list