get.porter.sh/porter@v1.3.0/cmd/porter/schema.go (about) 1 package main 2 3 import ( 4 "get.porter.sh/porter/pkg/porter" 5 "github.com/spf13/cobra" 6 ) 7 8 func buildSchemaCommand(p *porter.Porter) *cobra.Command { 9 cmd := &cobra.Command{ 10 Use: "schema", 11 Short: "Print the JSON schema for the Porter manifest", 12 RunE: func(cmd *cobra.Command, args []string) error { 13 return p.PrintManifestSchema(cmd.Context()) 14 }, 15 } 16 cmd.Annotations = map[string]string{ 17 "group": "meta", 18 } 19 return cmd 20 }