Skip to content

Commit

Permalink
Merge pull request #14 from CloudCannon/update-hugo-flags
Browse files Browse the repository at this point in the history
Updated some Hugo CLI flags
  • Loading branch information
rphillips-cc authored Mar 19, 2024
2 parents 21076fb + ca67c3f commit 12bd190
Showing 1 changed file with 41 additions and 13 deletions.
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 12bd190

Please sign in to comment.