summaryrefslogtreecommitdiffstats
path: root/commands/genautocomplete.go
AgeCommit message (Collapse)Author
2021-02-20commands: Fix autocomplete docsBjørn Erik Pedersen
2021-02-09commands: Add PowerShell completion supportAnthony Fok
Revert "Refactor: Remove powershell support" with fixes Thanks to Ben Mezger (@benmezger) for the original code. See #8122 This reverts commit a7c515e1b56e8cab34ca2647b4116904df9c8250.
2021-02-04Refactor: Write to stdout by defaultBen Mezger
2021-02-04Refactor: Remove powershell supportBen Mezger
2021-02-04Feat: Add zsh, fish and powershell completion supportBen Mezger
See issue #4296
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2018-04-11commands: Make the hugo command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the gen commands non-globalBjørn Erik Pedersen
See #4598
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