()
| 26 | ) |
| 27 | |
| 28 | func init() { |
| 29 | RegisterCommonFlags(httpsCmd) |
| 30 | |
| 31 | httpsCmd.PersistentFlags().StringVarP(&proxyName, "proxy_name", "n", "", "proxy name") |
| 32 | httpsCmd.PersistentFlags().StringVarP(&localIP, "local_ip", "i", "127.0.0.1", "local ip") |
| 33 | httpsCmd.PersistentFlags().IntVarP(&localPort, "local_port", "l", 0, "local port") |
| 34 | httpsCmd.PersistentFlags().StringVarP(&customDomains, "custom_domain", "d", "", "custom domain") |
| 35 | httpsCmd.PersistentFlags().StringVarP(&subDomain, "sd", "", "", "sub domain") |
| 36 | httpsCmd.PersistentFlags().BoolVarP(&useEncryption, "ue", "", false, "use encryption") |
| 37 | httpsCmd.PersistentFlags().BoolVarP(&useCompression, "uc", "", false, "use compression") |
| 38 | |
| 39 | rootCmd.AddCommand(httpsCmd) |
| 40 | } |
| 41 | |
| 42 | var httpsCmd = &cobra.Command{ |
| 43 | Use: "https", |
nothing calls this directly
no test coverage detected