 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var Root = &cobra.Command{ PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if vers { return nil } req := server.DefaultConfig switch confType { case "file": req.ConfigFile.Enabled = true req.ConfigFile.Path = confFile default: req.ConfigEnv.Enabled = true } cobra.CheckErr(ioc.ConfigIocObject(server.DefaultConfig)) cmd.Use = application.Get().AppName cmd.Short = application.Get().AppDescription cmd.Long = application.Get().AppDescription return nil }, RunE: func(cmd *cobra.Command, args []string) error { if vers { fmt.Println(application.FullVersion()) return nil } return cmd.Help() }, }
Root represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.