Documentation
¶
Overview ¶
Package commands defines and implements command-line commands and flags used by Hugo. Commands and flags are implemented using Cobra.
Package commands defines and implements command-line commands and flags used by Hugo. Commands and flags are implemented using Cobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶ added in v0.40.1
type Response struct { // The build Result will only be set in the hugo build command. Result *hugolib.HugoSites // Err is set when the command failed to execute. Err error // The command that was executed. Cmd *cobra.Command }
The Response value from Execute.
func Execute ¶
Execute adds all child commands to the root command HugoCmd and sets flags appropriately. The args are usually filled with os.Args[1:].
func (Response) IsUserError ¶ added in v0.40.1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.