mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 05:43:33 +00:00
3f0f7eed68
Cobra, the CLI commander in use in Hugo, has some long awaited improvements in the error handling department. This enables a more centralized error handling approach. This commit introduces that by changing all the command funcs to `RunE`: * The core part of the error logging, usage logging and `os.Exit(-1)` is now performed in one place and that one place only. * The usage text is now only shown on invalid arguments etc. (user errors) Fixes #1502 |
||
---|---|---|
.. | ||
benchmark.go | ||
check.go | ||
convert.go | ||
gen.go | ||
genautocomplete.go | ||
gendoc.go | ||
genman.go | ||
hugo.go | ||
import_jekyll.go | ||
import_jekyll_test.go | ||
limit_darwin.go | ||
limit_others.go | ||
list.go | ||
list_config.go | ||
new.go | ||
new_test.go | ||
server.go | ||
server_test.go | ||
undraft.go | ||
undraft_test.go | ||
version.go |