Bjørn Erik Pedersen
4ddd5361c1
Use the Afero source fs where relevant
...
Fixes #2319
2016-07-30 15:37:03 +02:00
digitalcraftsman
7c81c86bdd
commands: Apply Golint rules
2016-03-24 23:34:12 +01:00
Bjørn Erik Pedersen
1cb7ed6ac7
parser: Spring code cleaning
2016-03-23 14:51:16 +01:00
Bjørn Erik Pedersen
e445c35d6a
Fix copyright headers in source files
...
Still need to add some missing headers and an AUTHORS file.
See #1646
2015-12-07 19:57:01 +01:00
Bjørn Erik Pedersen
be28d9d943
Fix some errors with format patterns
...
See #1502
2015-12-02 23:37:40 +01:00
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
Steve Francia
f045d7a611
Change the license to Apache 2.0
2015-11-23 22:16:36 -05:00
Anthony Fok
18a29964fa
Fix trivial typos in code
2015-11-16 07:15:17 -07:00
Bjørn Erik Pedersen
72f14a8202
Apply project wide go fmt
2015-10-12 20:47:06 +02:00
Bjørn Erik Pedersen
b05a292c21
Revert "Fix some Go code doc issues"
...
This reverts commit de7dd70bbc
.
Broke the code fence feat.
2015-08-07 20:09:40 +02:00
Bjørn Erik Pedersen
de7dd70bbc
Fix some Go code doc issues
2015-08-06 22:58:10 +02:00
Anthony Fok
f2ab0b2608
Improve formatting of Hugo command descriptions
...
Trying to make them look good both in the terminal (`hugo help [command]`)
and in the web browser (http://gohugo.io/commands/ ). :-)
2015-08-04 03:19:57 -06:00
Joel Scoble
b4871787f0
add undraft command
2015-05-08 22:18:51 -04:00