cmd

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 5920

web服务器默认端口

Variables

View Source
var CmdWeb = cli.Command{
	Name:   "web",
	Usage:  "run web server",
	Action: runWeb,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "host",
			Value: "0.0.0.0",
			Usage: "bind host",
		},
		cli.IntFlag{
			Name:  "port,p",
			Value: DefaultPort,
			Usage: "bind port",
		},
		cli.StringFlag{
			Name:  "env,e",
			Value: "prod",
			Usage: "runtime environment, dev|test|prod",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL