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
..
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00
2015-11-23 16:51:12 +01:00
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00
2015-10-17 13:58:43 +02:00
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00
2015-05-08 22:18:51 -04:00
2015-12-02 07:07:05 -07:00
2015-12-02 07:07:05 -07:00