hugo/commands
Bjørn Erik Pedersen 3f0f7eed68 Improve error handling in commands
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
2015-12-02 07:07:05 -07:00
..
benchmark.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
check.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
convert.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
gen.go Restructure the gen commands 2015-11-23 16:51:12 +01:00
genautocomplete.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
gendoc.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
genman.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
hugo.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
import_jekyll.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
import_jekyll_test.go Move import jekyll functions to import_jekyll.go 2015-12-02 03:39:10 -07:00
limit_darwin.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
limit_others.go Change the license to Apache 2.0 2015-11-23 22:16:36 -05:00
list.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
list_config.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
new.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
new_test.go Add force flag 2015-10-17 13:58:43 +02:00
server.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
server_test.go
undraft.go Improve error handling in commands 2015-12-02 07:07:05 -07:00
undraft_test.go
version.go Improve error handling in commands 2015-12-02 07:07:05 -07:00