INNER CODE UNIT · Go
init
ponzu-cms/ponzu · cmd/ponzu/main.go:209
func init() {
for _, cmd := range []*cobra.Command{runCmd, serveCmd} {
cmd.Flags().StringVar(&bind, "bind", "localhost", "address for ponzu to bind the HTTP(S) server")
cmd.Flags().IntVar(&httpsport, "https-port", 443, "port for ponzu to bind its HTTPS listener")
cmd.Flags().IntVar(&port, "port", 8080, "port for ponzu to bind its HTTP listener")
cmd.Flags().IntVar(&docsport, "docs-port", 1234, "[dev environment] override the documentation server port")
cmd.Flags().BoolVar(&docs, "docs", false, "[dev environment] run HTTP server to view local HTML documentation")
cmd.Flags().BoolVar(&https, "https", false, "enable automatic TLS/SSL certificate management")
cmd.Flags().BoolVar(&devhttps, "dev-https", false, "[dev environment] enable automatic TLS/SSL certificate management")
}
RegisterCmdlineCommand(serveCmd)
RegisterCmdlineCommand(runCmd)
pflags := rootCmd.PersistentFlags()
pflags.StringVar(&gocmd, "gocmd", "go", "custom go command if using beta or new release of Go")
}