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