Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added hugo loglevel flag and added warnings for removed/deprecated flags #12

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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