Bjørn Erik Pedersen
a8f7fbbb10
commands: Move the commands related logic to its own file
...
See #4598
2018-04-11 09:50:19 +02:00
Bjørn Erik Pedersen
4d32f2fa89
commands: Make the hugo command non-global
...
See #4598
2018-04-11 09:50:19 +02:00
Bjørn Erik Pedersen
15b1e269ad
comands: Make the config command non-global
...
See #4598
2018-04-11 09:48:56 +02:00
Bjørn Erik Pedersen
7bc5e89fba
commands: Make more commands non-global
...
See #4598
2018-04-11 09:48:56 +02:00
Bjørn Erik Pedersen
ff54b6bddc
commands: Adjust rlimit to 64000
...
See #3582
2017-06-12 20:43:19 +02:00
Bjørn Erik Pedersen
629e1439e8
commands: Make error on setting rlimit a warning only
...
And reduce it to 10000.
Closes #3582
2017-06-12 20:35:19 +02:00
Bjørn Erik Pedersen
26aa06a3db
Revert "commands: Remove the rlimit tweaking on macOS"
...
This reverts commit bcd32f1086
.
See #3582
2017-06-12 20:35:19 +02:00
Bjørn Erik Pedersen
bcd32f1086
commands: Remove the rlimit tweaking on macOS
...
Fixes #3512
2017-05-23 18:52:00 +03:00
Bjørn Erik Pedersen
c60c41e051
commans: Remove unneeded build constraint
...
Fixes #2886
2017-01-05 15:45:25 +01:00
Anthony Fok
8509727fe8
Add copyright header to that source files that don’t have one.
...
See #1646
2015-12-10 15:19:38 -07: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
Anthony Fok
d48781badf
One more error fix in the server command
...
And some other small code clean-up.
See #1502
2015-12-02 11:56:36 -07: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
spf13
e50b9d8ac1
Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137
2014-03-31 13:23:34 -04:00
spf13
dc068ccb87
Fix imports so hugo builds on darwin
2014-02-21 18:33:46 -05:00
mattn
8ebb85f1f7
Fix build
2014-02-18 18:40:55 -05:00