Skip to content

Commit

Permalink
Updated some Hugo CLI flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nathank-cc committed Mar 19, 2024
1 parent c556b88 commit ca67c3f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudcannon/command-builder",
"version": "1.1.1",
"version": "1.1.2",
"description": "A script that builds the script that builds your site",
"main": "src/index.js",
"scripts": {
Expand Down
54 changes: 41 additions & 13 deletions src/options/hugo-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,6 @@ module.exports = {
type: 'boolean',
default: false
},
i18nWarnings: {
name: 'I18n Warnings',
description: 'Print missing translations.',
option: '--i18n-warnings',
type: 'boolean',
default: false
},
ignoreCache: {
name: 'Ignore Cache',
description: 'Ignores the cache directory.',
Expand Down Expand Up @@ -230,17 +223,31 @@ module.exports = {
type: 'boolean',
default: true
},
pathWarnings: {
name: 'Path Warnings',
description: 'Print warnings on duplicate target paths, etc.',
option: '--path-warnings',
printI18nWarnings: {
name: 'Print I18n Warnings',
description: 'Print missing translations.',
option: '--printI18nWarnings',
type: 'boolean',
default: false
},
mem: {
printMemoryUsage: {
name: 'Print Memory',
description: 'Print memory usage to screen at intervals.',
option: '--print-mem',
option: '--printMemoryUsage',
type: 'boolean',
default: false
},
printPathWarnings: {
name: 'Path Warnings',
description: 'Print warnings on duplicate target paths, etc.',
option: '--printPathWarnings',
type: 'boolean',
default: false
},
printUnusedTemplates: {
name: 'Print Unused Templates',
description: 'Print warnings on unused templates.',
option: '--printUnusedTemplates',
type: 'boolean',
default: false
},
Expand Down Expand Up @@ -279,6 +286,27 @@ module.exports = {
option: '--verboseLog',
type: 'boolean',
default: false
},
i18nWarnings: {
name: 'I18n Warnings (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print missing translations.',
option: '--i18n-warnings',
type: 'boolean',
default: false
},
pathWarnings: {
name: 'Path Warnings (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print warnings on duplicate target paths, etc.',
option: '--path-warnings',
type: 'boolean',
default: false
},
mem: {
name: 'Print Memory (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print memory usage to screen at intervals.',
option: '--print-mem',
type: 'boolean',
default: false
}
}
};

0 comments on commit ca67c3f

Please sign in to comment.