hugo-extended 0.154.1 → 0.154.3-sudoless.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +220 -65
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +28 -0
- package/dist/generated/flags.json +1143 -0
- package/dist/generated/types.d.mts +383 -0
- package/dist/generated/types.mjs +1 -0
- package/dist/generated/types.ts +490 -0
- package/dist/hugo.d.mts +240 -0
- package/dist/hugo.mjs +246 -0
- package/dist/lib/args.d.mts +30 -0
- package/dist/lib/args.mjs +126 -0
- package/dist/lib/env.d.mts +62 -0
- package/dist/lib/env.mjs +138 -0
- package/dist/lib/install.d.mts +66 -0
- package/dist/lib/install.mjs +190 -0
- package/dist/lib/utils.d.mts +123 -0
- package/dist/lib/utils.mjs +191 -0
- package/package.json +53 -26
- package/postinstall.js +57 -3
- package/index.d.ts +0 -7
- package/index.js +0 -22
- package/lib/cli.js +0 -15
- package/lib/install.js +0 -144
- package/lib/utils.js +0 -109
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
//#region src/generated/types.d.ts
|
|
2
|
+
interface HugoGlobalOptions {
|
|
3
|
+
/** set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 */
|
|
4
|
+
clock?: string;
|
|
5
|
+
/** config file (default hugo.yaml|json|toml) */
|
|
6
|
+
config?: string;
|
|
7
|
+
/** config dir (default "config") */
|
|
8
|
+
configDir?: string;
|
|
9
|
+
/** filesystem path to write files to */
|
|
10
|
+
destination?: string;
|
|
11
|
+
/** build environment */
|
|
12
|
+
environment?: string;
|
|
13
|
+
/** ignores any _vendor for module paths matching the given Glob pattern */
|
|
14
|
+
ignoreVendorPaths?: string;
|
|
15
|
+
/** log level */
|
|
16
|
+
logLevel?: "debug" | "info" | "warn" | "error";
|
|
17
|
+
/** don't create .hugo_build.lock file */
|
|
18
|
+
noBuildLock?: boolean;
|
|
19
|
+
/** filesystem path to write files to */
|
|
20
|
+
output?: string;
|
|
21
|
+
/** build in quiet mode */
|
|
22
|
+
quiet?: boolean;
|
|
23
|
+
/** render to memory (mostly useful when running the server) */
|
|
24
|
+
renderToMemory?: boolean;
|
|
25
|
+
/** filesystem path to read files relative from */
|
|
26
|
+
source?: string;
|
|
27
|
+
/** filesystem path to themes directory */
|
|
28
|
+
themesDir?: string;
|
|
29
|
+
/** enable less safe operations, please backup first */
|
|
30
|
+
unsafe?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface HugoBuildOptions extends HugoGlobalOptions {
|
|
33
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
34
|
+
baseURL?: string;
|
|
35
|
+
/** include content marked as draft */
|
|
36
|
+
buildDrafts?: boolean;
|
|
37
|
+
/** include expired content */
|
|
38
|
+
buildExpired?: boolean;
|
|
39
|
+
/** include content with publishdate in the future */
|
|
40
|
+
buildFuture?: boolean;
|
|
41
|
+
/** filesystem path to cache directory */
|
|
42
|
+
cacheDir?: string;
|
|
43
|
+
/** remove files from destination not found in static directories */
|
|
44
|
+
cleanDestinationDir?: boolean;
|
|
45
|
+
/** filesystem path to content directory */
|
|
46
|
+
contentDir?: string;
|
|
47
|
+
/** disable different kind of pages (home, RSS etc.) */
|
|
48
|
+
disableKinds?: string[];
|
|
49
|
+
/** add Git revision, date, author, and CODEOWNERS info to the pages */
|
|
50
|
+
enableGitInfo?: boolean;
|
|
51
|
+
/** copy all files when static is changed. */
|
|
52
|
+
forceSyncStatic?: boolean;
|
|
53
|
+
/** enable to run some cleanup tasks (remove unused cache files) after the build */
|
|
54
|
+
gc?: boolean;
|
|
55
|
+
/** ignores the cache directory */
|
|
56
|
+
ignoreCache?: boolean;
|
|
57
|
+
/** filesystem path to layout directory */
|
|
58
|
+
layoutDir?: string;
|
|
59
|
+
/** minify any supported output format (HTML, XML etc.) */
|
|
60
|
+
minify?: boolean;
|
|
61
|
+
/** don't sync permission mode of files */
|
|
62
|
+
noChmod?: boolean;
|
|
63
|
+
/** don't sync modification time of files */
|
|
64
|
+
noTimes?: boolean;
|
|
65
|
+
/** panic on first WARNING log */
|
|
66
|
+
panicOnWarning?: boolean;
|
|
67
|
+
/** set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes */
|
|
68
|
+
poll?: string;
|
|
69
|
+
/** print missing translations */
|
|
70
|
+
printI18nWarnings?: boolean;
|
|
71
|
+
/** print memory usage to screen at intervals */
|
|
72
|
+
printMemoryUsage?: boolean;
|
|
73
|
+
/** print warnings on duplicate target paths etc. */
|
|
74
|
+
printPathWarnings?: boolean;
|
|
75
|
+
/** print warnings on unused templates. */
|
|
76
|
+
printUnusedTemplates?: boolean;
|
|
77
|
+
/** named segments to render (configured in the segments config) */
|
|
78
|
+
renderSegments?: string[];
|
|
79
|
+
/** display metrics about template executions */
|
|
80
|
+
templateMetrics?: boolean;
|
|
81
|
+
/** calculate some improvement hints when combined with --templateMetrics */
|
|
82
|
+
templateMetricsHints?: boolean;
|
|
83
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
84
|
+
theme?: string[];
|
|
85
|
+
/** write trace to file (not useful in general) */
|
|
86
|
+
trace?: string;
|
|
87
|
+
/** watch filesystem for changes and recreate as needed */
|
|
88
|
+
watch?: boolean;
|
|
89
|
+
}
|
|
90
|
+
interface HugoCompletionOptions extends HugoGlobalOptions {}
|
|
91
|
+
interface HugoCompletionBashOptions extends HugoGlobalOptions {
|
|
92
|
+
/** disable completion descriptions */
|
|
93
|
+
noDescriptions?: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface HugoCompletionFishOptions extends HugoGlobalOptions {
|
|
96
|
+
/** disable completion descriptions */
|
|
97
|
+
noDescriptions?: boolean;
|
|
98
|
+
}
|
|
99
|
+
interface HugoCompletionPowershellOptions extends HugoGlobalOptions {
|
|
100
|
+
/** disable completion descriptions */
|
|
101
|
+
noDescriptions?: boolean;
|
|
102
|
+
}
|
|
103
|
+
interface HugoCompletionZshOptions extends HugoGlobalOptions {
|
|
104
|
+
/** disable completion descriptions */
|
|
105
|
+
noDescriptions?: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface HugoConfigOptions extends HugoGlobalOptions {
|
|
108
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
109
|
+
baseURL?: string;
|
|
110
|
+
/** filesystem path to cache directory */
|
|
111
|
+
cacheDir?: string;
|
|
112
|
+
/** filesystem path to content directory */
|
|
113
|
+
contentDir?: string;
|
|
114
|
+
/** preferred file format (toml, yaml or json) (default "toml") */
|
|
115
|
+
format?: string;
|
|
116
|
+
/** the language to display config for. Defaults to the first language defined. */
|
|
117
|
+
lang?: string;
|
|
118
|
+
/** include config options with zero values (e.g. false, 0, "") in the output */
|
|
119
|
+
printZero?: boolean;
|
|
120
|
+
/** named segments to render (configured in the segments config) */
|
|
121
|
+
renderSegments?: string[];
|
|
122
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
123
|
+
theme?: string[];
|
|
124
|
+
}
|
|
125
|
+
interface HugoConfigMountsOptions extends HugoGlobalOptions {
|
|
126
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
127
|
+
baseURL?: string;
|
|
128
|
+
/** filesystem path to cache directory */
|
|
129
|
+
cacheDir?: string;
|
|
130
|
+
/** filesystem path to content directory */
|
|
131
|
+
contentDir?: string;
|
|
132
|
+
/** named segments to render (configured in the segments config) */
|
|
133
|
+
renderSegments?: string[];
|
|
134
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
135
|
+
theme?: string[];
|
|
136
|
+
}
|
|
137
|
+
interface HugoConvertOptions extends HugoGlobalOptions {}
|
|
138
|
+
interface HugoConvertToJSONOptions extends HugoGlobalOptions {}
|
|
139
|
+
interface HugoConvertToTOMLOptions extends HugoGlobalOptions {}
|
|
140
|
+
interface HugoConvertToYAMLOptions extends HugoGlobalOptions {}
|
|
141
|
+
interface HugoEnvOptions extends HugoGlobalOptions {}
|
|
142
|
+
interface HugoGenOptions extends HugoGlobalOptions {}
|
|
143
|
+
interface HugoGenDocOptions extends HugoGlobalOptions {
|
|
144
|
+
/** the directory to write the doc. (default "/tmp/hugodoc/") */
|
|
145
|
+
dir?: string;
|
|
146
|
+
}
|
|
147
|
+
interface HugoGenManOptions extends HugoGlobalOptions {
|
|
148
|
+
/** the directory to write the man pages. (default "man/") */
|
|
149
|
+
dir?: string;
|
|
150
|
+
}
|
|
151
|
+
interface HugoHelpOptions extends HugoGlobalOptions {}
|
|
152
|
+
interface HugoImportOptions extends HugoGlobalOptions {}
|
|
153
|
+
interface HugoImportJekyllOptions extends HugoGlobalOptions {
|
|
154
|
+
/** allow import into non-empty target directory */
|
|
155
|
+
force?: boolean;
|
|
156
|
+
}
|
|
157
|
+
interface HugoListOptions extends HugoGlobalOptions {}
|
|
158
|
+
interface HugoListAllOptions extends HugoGlobalOptions {}
|
|
159
|
+
interface HugoListDraftsOptions extends HugoGlobalOptions {}
|
|
160
|
+
interface HugoListExpiredOptions extends HugoGlobalOptions {}
|
|
161
|
+
interface HugoListFutureOptions extends HugoGlobalOptions {}
|
|
162
|
+
interface HugoListPublishedOptions extends HugoGlobalOptions {}
|
|
163
|
+
interface HugoModOptions extends HugoGlobalOptions {}
|
|
164
|
+
interface HugoModCleanOptions extends HugoGlobalOptions {
|
|
165
|
+
/** clean entire module cache */
|
|
166
|
+
all?: boolean;
|
|
167
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
168
|
+
baseURL?: string;
|
|
169
|
+
/** filesystem path to cache directory */
|
|
170
|
+
cacheDir?: string;
|
|
171
|
+
/** filesystem path to content directory */
|
|
172
|
+
contentDir?: string;
|
|
173
|
+
/** pattern matching module paths to clean (all if not set), e.g. "**hugo*" */
|
|
174
|
+
pattern?: string;
|
|
175
|
+
/** named segments to render (configured in the segments config) */
|
|
176
|
+
renderSegments?: string[];
|
|
177
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
178
|
+
theme?: string[];
|
|
179
|
+
}
|
|
180
|
+
interface HugoModGetOptions extends HugoGlobalOptions {}
|
|
181
|
+
interface HugoModGraphOptions extends HugoGlobalOptions {
|
|
182
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
183
|
+
baseURL?: string;
|
|
184
|
+
/** filesystem path to cache directory */
|
|
185
|
+
cacheDir?: string;
|
|
186
|
+
/** delete module cache for dependencies that fail verification */
|
|
187
|
+
clean?: boolean;
|
|
188
|
+
/** filesystem path to content directory */
|
|
189
|
+
contentDir?: string;
|
|
190
|
+
/** named segments to render (configured in the segments config) */
|
|
191
|
+
renderSegments?: string[];
|
|
192
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
193
|
+
theme?: string[];
|
|
194
|
+
}
|
|
195
|
+
interface HugoModInitOptions extends HugoGlobalOptions {
|
|
196
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
197
|
+
baseURL?: string;
|
|
198
|
+
/** filesystem path to cache directory */
|
|
199
|
+
cacheDir?: string;
|
|
200
|
+
/** filesystem path to content directory */
|
|
201
|
+
contentDir?: string;
|
|
202
|
+
/** named segments to render (configured in the segments config) */
|
|
203
|
+
renderSegments?: string[];
|
|
204
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
205
|
+
theme?: string[];
|
|
206
|
+
}
|
|
207
|
+
interface HugoModNpmOptions extends HugoGlobalOptions {}
|
|
208
|
+
interface HugoModNpmPackOptions extends HugoGlobalOptions {
|
|
209
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
210
|
+
baseURL?: string;
|
|
211
|
+
/** filesystem path to cache directory */
|
|
212
|
+
cacheDir?: string;
|
|
213
|
+
/** filesystem path to content directory */
|
|
214
|
+
contentDir?: string;
|
|
215
|
+
/** named segments to render (configured in the segments config) */
|
|
216
|
+
renderSegments?: string[];
|
|
217
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
218
|
+
theme?: string[];
|
|
219
|
+
}
|
|
220
|
+
interface HugoModTidyOptions extends HugoGlobalOptions {
|
|
221
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
222
|
+
baseURL?: string;
|
|
223
|
+
/** filesystem path to cache directory */
|
|
224
|
+
cacheDir?: string;
|
|
225
|
+
/** filesystem path to content directory */
|
|
226
|
+
contentDir?: string;
|
|
227
|
+
/** named segments to render (configured in the segments config) */
|
|
228
|
+
renderSegments?: string[];
|
|
229
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
230
|
+
theme?: string[];
|
|
231
|
+
}
|
|
232
|
+
interface HugoModVendorOptions extends HugoGlobalOptions {
|
|
233
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
234
|
+
baseURL?: string;
|
|
235
|
+
/** filesystem path to cache directory */
|
|
236
|
+
cacheDir?: string;
|
|
237
|
+
/** filesystem path to content directory */
|
|
238
|
+
contentDir?: string;
|
|
239
|
+
/** named segments to render (configured in the segments config) */
|
|
240
|
+
renderSegments?: string[];
|
|
241
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
242
|
+
theme?: string[];
|
|
243
|
+
}
|
|
244
|
+
interface HugoModVerifyOptions extends HugoGlobalOptions {
|
|
245
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
246
|
+
baseURL?: string;
|
|
247
|
+
/** filesystem path to cache directory */
|
|
248
|
+
cacheDir?: string;
|
|
249
|
+
/** delete module cache for dependencies that fail verification */
|
|
250
|
+
clean?: boolean;
|
|
251
|
+
/** filesystem path to content directory */
|
|
252
|
+
contentDir?: string;
|
|
253
|
+
/** named segments to render (configured in the segments config) */
|
|
254
|
+
renderSegments?: string[];
|
|
255
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
256
|
+
theme?: string[];
|
|
257
|
+
}
|
|
258
|
+
interface HugoNewOptions extends HugoGlobalOptions {}
|
|
259
|
+
interface HugoNewContentOptions extends HugoGlobalOptions {
|
|
260
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
261
|
+
baseURL?: string;
|
|
262
|
+
/** filesystem path to cache directory */
|
|
263
|
+
cacheDir?: string;
|
|
264
|
+
/** filesystem path to content directory */
|
|
265
|
+
contentDir?: string;
|
|
266
|
+
/** edit new content with this editor, if provided */
|
|
267
|
+
editor?: string;
|
|
268
|
+
/** overwrite file if it already exists */
|
|
269
|
+
force?: boolean;
|
|
270
|
+
/** content type to create */
|
|
271
|
+
kind?: string;
|
|
272
|
+
/** named segments to render (configured in the segments config) */
|
|
273
|
+
renderSegments?: string[];
|
|
274
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
275
|
+
theme?: string[];
|
|
276
|
+
}
|
|
277
|
+
interface HugoNewSiteOptions extends HugoGlobalOptions {
|
|
278
|
+
/** init inside non-empty directory */
|
|
279
|
+
force?: boolean;
|
|
280
|
+
/** preferred file format (toml, yaml or json) (default "toml") */
|
|
281
|
+
format?: string;
|
|
282
|
+
}
|
|
283
|
+
interface HugoNewThemeOptions extends HugoGlobalOptions {
|
|
284
|
+
/** preferred file format (toml, yaml or json) (default "toml") */
|
|
285
|
+
format?: string;
|
|
286
|
+
}
|
|
287
|
+
interface HugoServerOptions extends HugoGlobalOptions {
|
|
288
|
+
/** append port to baseURL (default true) */
|
|
289
|
+
appendPort?: boolean;
|
|
290
|
+
/** hostname (and path) to the root, e.g. https://spf13.com/ */
|
|
291
|
+
baseURL?: string;
|
|
292
|
+
/** interface to which the server will bind (default "127.0.0.1") */
|
|
293
|
+
bind?: string;
|
|
294
|
+
/** include content marked as draft */
|
|
295
|
+
buildDrafts?: boolean;
|
|
296
|
+
/** include expired content */
|
|
297
|
+
buildExpired?: boolean;
|
|
298
|
+
/** include content with publishdate in the future */
|
|
299
|
+
buildFuture?: boolean;
|
|
300
|
+
/** filesystem path to cache directory */
|
|
301
|
+
cacheDir?: string;
|
|
302
|
+
/** remove files from destination not found in static directories */
|
|
303
|
+
cleanDestinationDir?: boolean;
|
|
304
|
+
/** filesystem path to content directory */
|
|
305
|
+
contentDir?: string;
|
|
306
|
+
/** do not show build errors in the browser */
|
|
307
|
+
disableBrowserError?: boolean;
|
|
308
|
+
/** enables full re-renders on changes */
|
|
309
|
+
disableFastRender?: boolean;
|
|
310
|
+
/** disable different kind of pages (home, RSS etc.) */
|
|
311
|
+
disableKinds?: string[];
|
|
312
|
+
/** watch without enabling live browser reload on rebuild */
|
|
313
|
+
disableLiveReload?: boolean;
|
|
314
|
+
/** add Git revision, date, author, and CODEOWNERS info to the pages */
|
|
315
|
+
enableGitInfo?: boolean;
|
|
316
|
+
/** copy all files when static is changed. */
|
|
317
|
+
forceSyncStatic?: boolean;
|
|
318
|
+
/** enable to run some cleanup tasks (remove unused cache files) after the build */
|
|
319
|
+
gc?: boolean;
|
|
320
|
+
/** ignores the cache directory */
|
|
321
|
+
ignoreCache?: boolean;
|
|
322
|
+
/** filesystem path to layout directory */
|
|
323
|
+
layoutDir?: string;
|
|
324
|
+
/** port for live reloading (i.e. 443 in HTTPS proxy situations) (default -1) */
|
|
325
|
+
liveReloadPort?: number;
|
|
326
|
+
/** minify any supported output format (HTML, XML etc.) */
|
|
327
|
+
minify?: boolean;
|
|
328
|
+
/** navigate to changed content file on live browser reload */
|
|
329
|
+
navigateToChanged?: boolean;
|
|
330
|
+
/** don't sync permission mode of files */
|
|
331
|
+
noChmod?: boolean;
|
|
332
|
+
/** prevent HTTP caching */
|
|
333
|
+
noHTTPCache?: boolean;
|
|
334
|
+
/** don't sync modification time of files */
|
|
335
|
+
noTimes?: boolean;
|
|
336
|
+
/** open the site in a browser after server startup */
|
|
337
|
+
openBrowser?: boolean;
|
|
338
|
+
/** panic on first WARNING log */
|
|
339
|
+
panicOnWarning?: boolean;
|
|
340
|
+
/** set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes */
|
|
341
|
+
poll?: string;
|
|
342
|
+
/** port on which the server will listen (default 1313) */
|
|
343
|
+
port?: number;
|
|
344
|
+
/** enable the pprof server (port 8080) */
|
|
345
|
+
pprof?: boolean;
|
|
346
|
+
/** print missing translations */
|
|
347
|
+
printI18nWarnings?: boolean;
|
|
348
|
+
/** print memory usage to screen at intervals */
|
|
349
|
+
printMemoryUsage?: boolean;
|
|
350
|
+
/** print warnings on duplicate target paths etc. */
|
|
351
|
+
printPathWarnings?: boolean;
|
|
352
|
+
/** print warnings on unused templates. */
|
|
353
|
+
printUnusedTemplates?: boolean;
|
|
354
|
+
/** named segments to render (configured in the segments config) */
|
|
355
|
+
renderSegments?: string[];
|
|
356
|
+
/** serve static files from disk and dynamic files from memory */
|
|
357
|
+
renderStaticToDisk?: boolean;
|
|
358
|
+
/** display metrics about template executions */
|
|
359
|
+
templateMetrics?: boolean;
|
|
360
|
+
/** calculate some improvement hints when combined with --templateMetrics */
|
|
361
|
+
templateMetricsHints?: boolean;
|
|
362
|
+
/** themes to use (located in /themes/THEMENAME/) */
|
|
363
|
+
theme?: string[];
|
|
364
|
+
/** generate and use locally-trusted certificates. */
|
|
365
|
+
tlsAuto?: boolean;
|
|
366
|
+
/** path to TLS certificate file */
|
|
367
|
+
tlsCertFile?: string;
|
|
368
|
+
/** path to TLS key file */
|
|
369
|
+
tlsKeyFile?: string;
|
|
370
|
+
/** write trace to file (not useful in general) */
|
|
371
|
+
trace?: string;
|
|
372
|
+
/** watch filesystem for changes and recreate as needed (default true) */
|
|
373
|
+
watch?: boolean;
|
|
374
|
+
}
|
|
375
|
+
interface HugoServerTrustOptions extends HugoGlobalOptions {
|
|
376
|
+
/** Uninstall the local CA (but do not delete it). */
|
|
377
|
+
uninstall?: boolean;
|
|
378
|
+
}
|
|
379
|
+
interface HugoVersionOptions extends HugoGlobalOptions {}
|
|
380
|
+
type HugoCommand = "build" | "completion" | "completion bash" | "completion fish" | "completion powershell" | "completion zsh" | "config" | "config mounts" | "convert" | "convert toJSON" | "convert toTOML" | "convert toYAML" | "env" | "gen" | "gen doc" | "gen man" | "help" | "import" | "import jekyll" | "list" | "list all" | "list drafts" | "list expired" | "list future" | "list published" | "mod" | "mod clean" | "mod get" | "mod graph" | "mod init" | "mod npm" | "mod npm pack" | "mod tidy" | "mod vendor" | "mod verify" | "new" | "new content" | "new site" | "new theme" | "server" | "server trust" | "version";
|
|
381
|
+
type HugoOptionsFor<C extends HugoCommand> = C extends "build" ? HugoBuildOptions : C extends "completion" ? HugoCompletionOptions : C extends "completion bash" ? HugoCompletionBashOptions : C extends "completion fish" ? HugoCompletionFishOptions : C extends "completion powershell" ? HugoCompletionPowershellOptions : C extends "completion zsh" ? HugoCompletionZshOptions : C extends "config" ? HugoConfigOptions : C extends "config mounts" ? HugoConfigMountsOptions : C extends "convert" ? HugoConvertOptions : C extends "convert toJSON" ? HugoConvertToJSONOptions : C extends "convert toTOML" ? HugoConvertToTOMLOptions : C extends "convert toYAML" ? HugoConvertToYAMLOptions : C extends "env" ? HugoEnvOptions : C extends "gen" ? HugoGenOptions : C extends "gen doc" ? HugoGenDocOptions : C extends "gen man" ? HugoGenManOptions : C extends "help" ? HugoHelpOptions : C extends "import" ? HugoImportOptions : C extends "import jekyll" ? HugoImportJekyllOptions : C extends "list" ? HugoListOptions : C extends "list all" ? HugoListAllOptions : C extends "list drafts" ? HugoListDraftsOptions : C extends "list expired" ? HugoListExpiredOptions : C extends "list future" ? HugoListFutureOptions : C extends "list published" ? HugoListPublishedOptions : C extends "mod" ? HugoModOptions : C extends "mod clean" ? HugoModCleanOptions : C extends "mod get" ? HugoModGetOptions : C extends "mod graph" ? HugoModGraphOptions : C extends "mod init" ? HugoModInitOptions : C extends "mod npm" ? HugoModNpmOptions : C extends "mod npm pack" ? HugoModNpmPackOptions : C extends "mod tidy" ? HugoModTidyOptions : C extends "mod vendor" ? HugoModVendorOptions : C extends "mod verify" ? HugoModVerifyOptions : C extends "new" ? HugoNewOptions : C extends "new content" ? HugoNewContentOptions : C extends "new site" ? HugoNewSiteOptions : C extends "new theme" ? HugoNewThemeOptions : C extends "server" ? HugoServerOptions : C extends "server trust" ? HugoServerTrustOptions : C extends "version" ? HugoVersionOptions : never;
|
|
382
|
+
//#endregion
|
|
383
|
+
export { HugoBuildOptions, HugoCommand, HugoCompletionBashOptions, HugoCompletionFishOptions, HugoCompletionOptions, HugoCompletionPowershellOptions, HugoCompletionZshOptions, HugoConfigMountsOptions, HugoConfigOptions, HugoConvertOptions, HugoConvertToJSONOptions, HugoConvertToTOMLOptions, HugoConvertToYAMLOptions, HugoEnvOptions, HugoGenDocOptions, HugoGenManOptions, HugoGenOptions, HugoGlobalOptions, HugoHelpOptions, HugoImportJekyllOptions, HugoImportOptions, HugoListAllOptions, HugoListDraftsOptions, HugoListExpiredOptions, HugoListFutureOptions, HugoListOptions, HugoListPublishedOptions, HugoModCleanOptions, HugoModGetOptions, HugoModGraphOptions, HugoModInitOptions, HugoModNpmOptions, HugoModNpmPackOptions, HugoModOptions, HugoModTidyOptions, HugoModVendorOptions, HugoModVerifyOptions, HugoNewContentOptions, HugoNewOptions, HugoNewSiteOptions, HugoNewThemeOptions, HugoOptionsFor, HugoServerOptions, HugoServerTrustOptions, HugoVersionOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|