diff --git a/package-lock.json b/package-lock.json index 4bbe636..7a1a544 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudcannon/command-builder", - "version": "1.0.50", + "version": "1.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@cloudcannon/command-builder", - "version": "1.0.50", + "version": "1.1.1", "license": "ISC", "devDependencies": { "eslint": "^7.27.0", diff --git a/package.json b/package.json index b314430..74bfbbe 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/options/hugo-options.js b/src/options/hugo-options.js index 33b0170..12003a4 100644 --- a/src/options/hugo-options.js +++ b/src/options/hugo-options.js @@ -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.', @@ -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 @@ -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 @@ -260,7 +267,7 @@ module.exports = { }, verbose: { name: 'Verbose', - description: 'Verbose output.', + description: '[Deprecated in Hugo version >=0.114.0] Verbose output.', option: '--verbose', alias: '-v', type: 'boolean', @@ -268,7 +275,7 @@ module.exports = { }, verboseLog: { name: 'Verbose Log', - description: 'Verbose logging.', + description: '[Removed in Hugo version >=0.114.0] Verbose logging.', option: '--verboseLog', type: 'boolean', default: false diff --git a/src/options/static-options.js b/src/options/static-options.js index dc60d34..06d72a2 100644 --- a/src/options/static-options.js +++ b/src/options/static-options.js @@ -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 }