Documentation ¶
Overview ¶
Package cli has a basic CLI interface for gostatic apps. Parses the flags and calls the appropriate functions of the given app.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultArgs ¶
func DefaultArgs() []string
DefaultArgs returns the default Args for flag.FlagSet
func DefaultName ¶
func DefaultName() string
DefaultName returns the name of the executable from the Args
func RunDefault ¶
RunDefault runs the App with the default settings
Types ¶
type App ¶
type App interface { // RunFileServer runs the server to host the generated files of the static web page RunFileServer() error // Host runs a web application server that computes the route responses in real time Host() error // Generate generate the static web pages Generate() error // GeneratedPath returns the path of the generates files of the static web page GeneratedPath() string // FileServerPort returns the port of the file server FileServerPort() int // ServerPort returns the port of the web application server ServerPort() int }
App has the high level commands that the CLI can work with
Click to show internal directories.
Click to hide internal directories.