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
IsUserError returns true is the Response error is a user error rather than a system error.
Source Files
¶
- check.go
- commandeer.go
- commands.go
- config.go
- convert.go
- deploy.go
- env.go
- gen.go
- genautocomplete.go
- genchromastyles.go
- gendoc.go
- gendocshelper.go
- genman.go
- helpers.go
- hugo.go
- import_jekyll.go
- limit_others.go
- list.go
- mod.go
- new.go
- new_site.go
- new_theme.go
- release_noop.go
- server.go
- server_errors.go
- static_syncer.go
- version.go
Click to show internal directories.
Click to hide internal directories.