1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

docs: Regen CLI docs

This commit is contained in:
Bjørn Erik Pedersen
2021-02-18 17:55:38 +01:00
parent 1b364b003f
commit 9e99950c6e
38 changed files with 83 additions and 99 deletions

View File

@@ -1,5 +1,5 @@
---
date: 2021-01-06
date: 2021-02-18
title: "hugo gen autocomplete"
slug: hugo_gen_autocomplete
url: /commands/hugo_gen_autocomplete/
@@ -12,21 +12,21 @@ Generate shell autocompletion script for Hugo
Generates a shell autocompletion script for Hugo.
By default, the file is written directly to `stdout`
By default, the file is written directly to /etc/bash_completion.d
for convenience, and the command may need superuser rights, e.g.:
$ sudo hugo gen autocomplete
$ sudo hugo gen autocomplete
Add `--completionfile=/path/to/file` flag to set alternative
file-path and name.
Add `--type={bash, zsh or fish}` flag to set alternative
Add `--type={bash, zsh, fish or powershell}` flag to set alternative
shell type.
Logout and in again to reload the completion scripts,
or just source them in directly:
$ . /path/to/file
$ . /etc/bash_completion or /path/to/file
```
hugo gen autocomplete [flags]
@@ -35,9 +35,9 @@ hugo gen autocomplete [flags]
### Options
```
--completionfile string autocompletion file (defaults to stdout)
-f, --completionfile string autocompletion file, defaults to stdout
-h, --help help for autocomplete
--type string autocompletion type (zsh, bash or fish) (default "bash")
-t, --type string autocompletion type (bash, zsh, fish, or powershell) (default "bash")
```
### Options inherited from parent commands
@@ -60,6 +60,6 @@ hugo gen autocomplete [flags]
### SEE ALSO
- [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 6-Jan-2021
###### Auto generated by spf13/cobra on 18-Feb-2021