Age | Commit message (Collapse) | Author |
|
See #4598
|
|
See #4598
|
|
|
|
See #2235
|
|
|
|
See #1646
|
|
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
|
|
These flags are:
* --source (-s), --cacheDir, --destination (-d) and --logFile
* --completionfile and --dir.
|
|
Fixes #1603
|
|
|
|
Trying to make them look good both in the terminal (`hugo help [command]`)
and in the web browser (http://gohugo.io/commands/). :-)
|
|
|
|
Add a new command, genautocomplete, wich generates a Bash completion script (zsh and others later).
The script is by default written to `/etc/bash_completion.d/hugo.sh`; this can be set in `--completionfile=/some/file`.
Fixes #438
|