github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/pkg/inspector/cmd/cmd.go (about) 1 package cmd 2 3 import ( 4 "io" 5 6 "github.com/spf13/cobra" 7 ) 8 9 const long string = `The Kismatic Inspector verifies the infrastructure that has 10 been provisioned for installing a Kubernetes cluster. 11 ` 12 13 // NewCmdKismaticInspector builds the kismatic-inspector command 14 func NewCmdKismaticInspector(out io.Writer) *cobra.Command { 15 cmd := &cobra.Command{ 16 Use: "kismatic-inspector", 17 Short: "kismatic-inspector verifies infrastructure to be used for installing Kismatic", 18 Long: long, 19 Run: func(cmd *cobra.Command, args []string) { 20 cmd.Help() 21 }, 22 SilenceUsage: true, 23 } 24 cmd.AddCommand(NewCmdClient(out)) 25 cmd.AddCommand(NewCmdServer(out)) 26 cmd.AddCommand(NewCmdLocal(out)) 27 cmd.AddCommand(NewCmdRules(out)) 28 return cmd 29 }