github.com/jbramsden/hugo@v0.47.1/docs/content/en/commands/hugo_gen_autocomplete.md (about)

     1  ---
     2  date: 2018-08-17
     3  title: "hugo gen autocomplete"
     4  slug: hugo_gen_autocomplete
     5  url: /commands/hugo_gen_autocomplete/
     6  ---
     7  ## hugo gen autocomplete
     8  
     9  Generate shell autocompletion script for Hugo
    10  
    11  ### Synopsis
    12  
    13  Generates a shell autocompletion script for Hugo.
    14  
    15  NOTE: The current version supports Bash only.
    16        This should work for *nix systems with Bash installed.
    17  
    18  By default, the file is written directly to /etc/bash_completion.d
    19  for convenience, and the command may need superuser rights, e.g.:
    20  
    21  	$ sudo hugo gen autocomplete
    22  
    23  Add `--completionfile=/path/to/file` flag to set alternative
    24  file-path and name.
    25  
    26  Logout and in again to reload the completion scripts,
    27  or just source them in directly:
    28  
    29  	$ . /etc/bash_completion
    30  
    31  ```
    32  hugo gen autocomplete [flags]
    33  ```
    34  
    35  ### Options
    36  
    37  ```
    38        --completionfile string   autocompletion file (default "/etc/bash_completion.d/hugo.sh")
    39    -h, --help                    help for autocomplete
    40        --type string             autocompletion type (currently only bash supported) (default "bash")
    41  ```
    42  
    43  ### Options inherited from parent commands
    44  
    45  ```
    46        --config string    config file (default is path/config.yaml|json|toml)
    47        --debug            debug output
    48        --log              enable Logging
    49        --logFile string   log File path (if set, logging enabled automatically)
    50        --quiet            build in quiet mode
    51    -v, --verbose          verbose output
    52        --verboseLog       verbose logging
    53  ```
    54  
    55  ### SEE ALSO
    56  
    57  * [hugo gen](/commands/hugo_gen/)	 - A collection of several useful generators.
    58  
    59  ###### Auto generated by spf13/cobra on 17-Aug-2018