Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Build = cmd.Sub{ Name: "build", Alias: "up", Short: "Generate the site", Flags: &BuildFlags{ Src: ".", Build: "build", }, Run: BuildRun, }
Build generates an updated static site tree
View Source
var Init = cmd.Sub{ Name: "init", Alias: "new", Short: "Create a new static-cling project", Flags: &InitFlags{ DestDir: ".", }, Run: InitRun, }
Init populates a new blank project tree
View Source
var Root = cmd.Root{
Name: "static-cling",
Short: "A no nonsense static static site generator",
}
Root command for "static-cling"
View Source
var Server = cmd.Sub{ Name: "server", Alias: "run", Short: "Start and HTTP server to serve out the files in the output directory", Run: ServerRun, }
Server runs a local web server to preview changes made to the website
Functions ¶
Types ¶
type BuildFlags ¶
type BuildFlags struct {
Src string `short:"S" long:"source" desc:"source of project files (default '.')"`
Build string `short:"B" long:"build" desc:"name of the buid dir, relative to source (default 'build')"`
}
BuildFlags are flags used by the "build" sub-command
Click to show internal directories.
Click to hide internal directories.