Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "openvpn-api", Short: "Use OpenVPN API to create users and fetch predefined openvpn configs", Long: ` Use OpenVPN API to create users and fetch predefined openvpn configs. `, RunE: func(cmd *cobra.Command, args []string) error { logger := log.WithFields(log.Fields{"class": "RootCmd", "method": "RunE"}) cfg := config.Config{ Listen: viper.GetString("listen"), } logger.Infof("Config: Listen - %v", cfg.Listen) err := cfg.Validate() if err == nil { server.Run(cfg) } return err }, }
RootCmd 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.