1HUGO-GEN-AUTOCOMPLETE(1) Hugo Manual HUGO-GEN-AUTOCOMPLETE(1)
2
3
4
6 hugo-gen-autocomplete - Generate shell autocompletion script for Hugo
7
8
9
11 hugo gen autocomplete [flags]
12
13
14
16 Generates a shell autocompletion script for Hugo.
17
18
19 NOTE: The current version supports Bash only.
20 This should work for *nix systems with Bash installed.
21
22
23 By default, the file is written directly to /etc/bash_completion.d for
24 convenience, and the command may need superuser rights, e.g.:
25
26
27 $ sudo hugo gen autocomplete
28
29
30
31 Add --completionfile=/path/to/file flag to set alternative file-path
32 and name.
33
34
35 Logout and in again to reload the completion scripts, or just source
36 them in directly:
37
38
39 $ . /etc/bash_completion
40
41
42
43
45 --completionfile="/etc/bash_completion.d/hugo.sh" autocompletion
46 file
47
48
49 -h, --help[=false] help for autocomplete
50
51
52 --type="bash" autocompletion type (currently only bash supported)
53
54
55
57 --config="" config file (default is path/config.yaml|json|toml)
58
59
60 --configDir="config" config dir
61
62
63 --debug[=false] debug output
64
65
66 -e, --environment="" build environment
67
68
69 --ignoreVendor[=false] ignores any _vendor directory
70
71
72 --ignoreVendorPaths="" ignores any _vendor for module paths match‐
73 ing the given Glob pattern
74
75
76 --log[=false] enable Logging
77
78
79 --logFile="" log File path (if set, logging enabled automatically)
80
81
82 --quiet[=false] build in quiet mode
83
84
85 -s, --source="" filesystem path to read files relative from
86
87
88 --themesDir="" filesystem path to themes directory
89
90
91 -v, --verbose[=false] verbose output
92
93
94 --verboseLog[=false] verbose logging
95
96
97
99 hugo-gen(1)
100
101
102
103Hugo 0.80.0 Jan 2021 HUGO-GEN-AUTOCOMPLETE(1)