Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Build = cli.Command{ Name: "build", Usage: "build source and theme to website pages", Flags: append(commonFlags, cli.BoolFlag{ Name: "clean", Usage: "clean not-rendered file", }, cli.BoolFlag{ Name: "watch", Usage: "watch files changes to rebuild", }), Action: func(ctx *cli.Context) error { setLogLevel(ctx) if ctx.Bool("watch") { watchOnce([]string{sourceDir, themeDir}, ctx) return nil } return buildOnce(ctx) }, }
Build is command of 'build'
View Source
var Init = cli.Command{ Name: "init", Usage: "init default site", Flags: commonFlags, Action: func(ctx *cli.Context) error { setLogLevel(ctx) return unpackOnce(ctx) }, }
Init is command of 'init'
View Source
var Pack = cli.Command{ Name: "pack", Usage: "pack source code to go file", Flags: commonFlags, Action: func(ctx *cli.Context) error { setLogLevel(ctx) return packOnce(ctx) }, }
Pack is command of 'build'
View Source
var Server = cli.Command{ Name: "server", Usage: "run http server on output directory", Flags: append(commonFlags, cli.BoolFlag{ Name: "admin", Usage: "open admin panel pages", }, cli.StringFlag{ Name: "port", Usage: "set http server listening port", Value: defaultPort, }), Action: func(ctx *cli.Context) error { setLogLevel(ctx) return serverFunc(ctx) }, }
Server is command of 'server'
View Source
var Version = cli.Command{ Name: "version", Usage: "print version", Flags: commonFlags, Action: func(ctx *cli.Context) error { setLogLevel(ctx) return printVersion(ctx) }, }
Version is command of 'version'
View Source
var (
// VersionNumber is version string of PuGo
VersionNumber = "2.3.3"
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.