summaryrefslogtreecommitdiffstats
path: root/commands/genautocomplete.go
AgeCommit message (Collapse)Author
2017-04-26commands: Make first letter of flags' usage lowercaseAlbert Nigmatzianov
2016-06-22Fix example for autocompleteBjørn Erik Pedersen
See #2235
2016-03-23commands: Fix remaining Golint warningBjørn Erik Pedersen
2015-12-10Add copyright header to that source files that don’t have one.Anthony Fok
See #1646
2015-12-02Improve error handling in commandsBjørn Erik Pedersen
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-02Enable dirname and filename completion for more flagsAnthony Fok
These flags are: * --source (-s), --cacheDir, --destination (-d) and --logFile * --completionfile and --dir.
2015-11-23Restructure the gen commandsBjørn Erik Pedersen
Fixes #1603
2015-08-09Print feedback for `hugo genautocomplete`Anthony Fok
2015-08-04Improve formatting of Hugo command descriptionsAnthony Fok
Trying to make them look good both in the terminal (`hugo help [command]`) and in the web browser (http://gohugo.io/commands/). :-)
2015-05-16Remove trailing spaces in completionfile flagbep
2015-05-16Add Bash completionbep
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