Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Build is command of 'build' Build = cli.Command{ Name: "build", Usage: "build static files", Flags: []cli.Flag{ buildSourceFlag, buildDestFlag, buildThemeFlag, buildWatchFlag, debugFlag, }, Before: Before, Action: func(ctx *cli.Context) { build(newContext(ctx, true), false) }, } )
View Source
var ( // Deploy is command `deploy` Deploy = cli.Command{ Name: "deploy", Usage: "deploy static website", } )
View Source
var ( // Doc is command of 'doc' Doc = cli.Command{ Name: "doc", Usage: "run documentation server", Flags: []cli.Flag{ addrFlag, debugFlag, }, Before: Before, Action: docServ, } )
View Source
var ( // Version is command of 'version' Version = cli.Command{ Name: "version", Usage: "print PuGo Version", Action: func(ctx *cli.Context) { if vars.Commit == "" { fmt.Printf("%v version %v ~ %s\n", ctx.App.Name, ctx.App.Version, ctx.App.Compiled.Format("2006/01/02 15:04")) return } fmt.Printf("%v version %v ~ %s\n", ctx.App.Name, ctx.App.Version, vars.Commit) }, } )
Functions ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.