Skip to content

Commit

Permalink
Added hugo loglevel flag and added warnings for removed/deprecated flags
Browse files Browse the repository at this point in the history
  • Loading branch information
nathank-cc committed Nov 2, 2023
1 parent 41a1ef1 commit c556b88
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 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.0",
"version": "1.1.1",
"description": "A script that builds the script that builds your site",
"main": "src/index.js",
"scripts": {
Expand Down
15 changes: 11 additions & 4 deletions src/options/hugo-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ module.exports = {
type: 'string',
validator: /.*/ig
},
logLevel: {
name: 'Log level',
description: '[Requires Hugo version >=0.114.0] Log level (debug|info|warn|error)',
option: '--logLevel',
suggestion: 'one of: debug, info, warn, error',
type: 'string'
},
ignoreVendorPaths: {
name: 'Ignore Vendor Paths',
description: 'Ignores any _vendor for module paths matching the given pattern.',
Expand Down Expand Up @@ -155,7 +162,7 @@ module.exports = {
},
debug: {
name: 'Debug',
description: 'Output debug output.',
description: '[Deprecated in Hugo version >=0.114.0] Output debug output.',
option: '--debug',
type: 'boolean',
default: false
Expand Down Expand Up @@ -197,7 +204,7 @@ module.exports = {
},
log: {
name: 'Log',
description: 'Enable logging.',
description: '[Removed in Hugo version >=0.114.0] Enable logging.',
option: '--log',
type: 'boolean',
default: false
Expand Down Expand Up @@ -260,15 +267,15 @@ module.exports = {
},
verbose: {
name: 'Verbose',
description: 'Verbose output.',
description: '[Deprecated in Hugo version >=0.114.0] Verbose output.',
option: '--verbose',
alias: '-v',
type: 'boolean',
default: false
},
verboseLog: {
name: 'Verbose Log',
description: 'Verbose logging.',
description: '[Removed in Hugo version >=0.114.0] Verbose logging.',
option: '--verboseLog',
type: 'boolean',
default: false
Expand Down
2 changes: 1 addition & 1 deletion src/options/static-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
options: {
source: {
name: 'Source',
description: 'The path CloudCannon reads your files.',
description: 'The path to the folder that is copied to the output',
type: 'string',
validator: /^[^<>:"|?*/\\]+$/ig
}
Expand Down

0 comments on commit c556b88

Please sign in to comment.