get.porter.sh/porter@v1.3.0/cmd/exec/schema.go (about) 1 package main 2 3 import ( 4 "get.porter.sh/porter/pkg/exec" 5 "github.com/spf13/cobra" 6 ) 7 8 func buildSchemaCommand(m *exec.Mixin) *cobra.Command { 9 cmd := &cobra.Command{ 10 Use: "schema", 11 Short: "Print the json schema for the mixin", 12 Run: func(cmd *cobra.Command, args []string) { 13 m.PrintSchema() 14 }, 15 } 16 return cmd 17 }