github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/command/inspect/inspect.go (about) 1 package inspect 2 3 import ( 4 inspectconfig "github.com/henvic/wedeploycli/command/inspect/config" 5 inspectcontext "github.com/henvic/wedeploycli/command/inspect/context" 6 inspectservice "github.com/henvic/wedeploycli/command/inspect/service" 7 "github.com/henvic/wedeploycli/command/inspect/token" 8 "github.com/spf13/cobra" 9 ) 10 11 // InspectCmd returns information about current environment 12 var InspectCmd = &cobra.Command{ 13 Use: "inspect", 14 Short: "Inspect environment info", 15 Hidden: true, 16 Args: cobra.MaximumNArgs(1), 17 Example: ` lcp inspect context 18 lcp inspect service --format "{{.ID}}"`, 19 } 20 21 func init() { 22 InspectCmd.AddCommand(inspectservice.ServiceCmd) 23 InspectCmd.AddCommand(inspectcontext.ContextCmd) 24 InspectCmd.AddCommand(inspectconfig.ConfigCmd) 25 InspectCmd.AddCommand(token.TokenCmd) 26 }