mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
commands: Fix autocomplete docs
This commit is contained in:
@@ -40,13 +40,9 @@ func newGenautocompleteCmd() *genautocompleteCmd {
|
|||||||
Short: "Generate shell autocompletion script for Hugo",
|
Short: "Generate shell autocompletion script for Hugo",
|
||||||
Long: `Generates a shell autocompletion script for Hugo.
|
Long: `Generates a shell autocompletion script for Hugo.
|
||||||
|
|
||||||
By default, the file is written directly to /etc/bash_completion.d
|
The script is written to the console (stdout).
|
||||||
for convenience, and the command may need superuser rights, e.g.:
|
|
||||||
|
|
||||||
$ sudo hugo gen autocomplete
|
To write to file, add the ` + "`--completionfile=/path/to/file`" + ` flag.
|
||||||
|
|
||||||
Add ` + "`--completionfile=/path/to/file`" + ` flag to set alternative
|
|
||||||
file-path and name.
|
|
||||||
|
|
||||||
Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative
|
Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative
|
||||||
shell type.
|
shell type.
|
||||||
|
Reference in New Issue
Block a user