"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/commands/hugo_gen_autocomplete.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

hugo_gen_autocomplete.md  (hugo-0.80.0):hugo_gen_autocomplete.md  (hugo-0.81.0)
--- ---
date: 2020-09-13 date: 2021-02-18
title: "hugo gen autocomplete" title: "hugo gen autocomplete"
slug: hugo_gen_autocomplete slug: hugo_gen_autocomplete
url: /commands/hugo_gen_autocomplete/ url: /commands/hugo_gen_autocomplete/
--- ---
## hugo gen autocomplete ## hugo gen autocomplete
Generate shell autocompletion script for Hugo Generate shell autocompletion script for Hugo
### Synopsis ### Synopsis
Generates a shell autocompletion script for Hugo. Generates a shell autocompletion script for Hugo.
NOTE: The current version supports Bash only.
This should work for *nix systems with Bash installed.
By default, the file is written directly to /etc/bash_completion.d By default, the file is written directly to /etc/bash_completion.d
for convenience, and the command may need superuser rights, e.g.: 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 Add `--completionfile=/path/to/file` flag to set alternative
file-path and name. file-path and name.
Add `--type={bash, zsh, fish or powershell}` flag to set alternative
shell type.
Logout and in again to reload the completion scripts, Logout and in again to reload the completion scripts,
or just source them in directly: or just source them in directly:
$ . /etc/bash_completion $ . /etc/bash_completion or /path/to/file
``` ```
hugo gen autocomplete [flags] hugo gen autocomplete [flags]
``` ```
### Options ### Options
``` ```
--completionfile string autocompletion file (default "/etc/bash_completi on.d/hugo.sh") -f, --completionfile string autocompletion file, defaults to stdout
-h, --help help for autocomplete -h, --help help for autocomplete
--type string autocompletion type (currently only bash support ed) (default "bash") -t, --type string autocompletion type (bash, zsh, fish, or powersh ell) (default "bash")
``` ```
### Options inherited from parent commands ### Options inherited from parent commands
``` ```
--config string config file (default is path/config.yaml|json |toml) --config string config file (default is path/config.yaml|json |toml)
--configDir string config dir (default "config") --configDir string config dir (default "config")
--debug debug output --debug debug output
-e, --environment string build environment -e, --environment string build environment
--ignoreVendor ignores any _vendor directory --ignoreVendor ignores any _vendor directory
skipping to change at line 65 skipping to change at line 65
-s, --source string filesystem path to read files relative from -s, --source string filesystem path to read files relative from
--themesDir string filesystem path to themes directory --themesDir string filesystem path to themes directory
-v, --verbose verbose output -v, --verbose verbose output
--verboseLog verbose logging --verboseLog verbose logging
``` ```
### SEE ALSO ### SEE ALSO
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generat ors. * [hugo gen](/commands/hugo_gen/) - A collection of several useful generat ors.
###### Auto generated by spf13/cobra on 13-Sep-2020 ###### Auto generated by spf13/cobra on 18-Feb-2021
 End of changes. 7 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)