Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "server", Usage: "start temporary Web server", Category: utility.Category, Flags: []cli.Flag{ app.PortFlag(""), &cli.BoolFlag{ Name: "spa", Usage: "enable SPA redirect", }, &cli.StringFlag{ Name: "index", Usage: "index file name", Value: "index.html", }, }, Action: func(c *cli.Context) error { port := app.MustPortOrRandom(c, "", 3000) spa := c.Bool("spa") index := c.String("index") if index == "" { index = "index.html" } return startWebServer(c.Context, port, index, spa) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.