Add --error debug flag
This commit is contained in:
@@ -97,15 +97,15 @@
|
|||||||
data.meta = {version:conf.package.version, author:conf.package.author}
|
data.meta = {version:conf.package.version, author:conf.package.author}
|
||||||
|
|
||||||
//Debug flags
|
//Debug flags
|
||||||
if ((dflags.includes("--cakeday"))||(dflags.includes("cakeday"))) {
|
if (dflags.includes("--cakeday")) {
|
||||||
console.debug(`metrics/compute/${login} > applying dflag --cakeday`)
|
console.debug(`metrics/compute/${login} > applying dflag --cakeday`)
|
||||||
computed.cakeday = true
|
computed.cakeday = true
|
||||||
}
|
}
|
||||||
if ((dflags.includes("--hireable"))||(dflags.includes("hireable"))) {
|
if (dflags.includes("--hireable")) {
|
||||||
console.debug(`metrics/compute/${login} > applying dflag --hireable`)
|
console.debug(`metrics/compute/${login} > applying dflag --hireable`)
|
||||||
data.user.isHireable = true
|
data.user.isHireable = true
|
||||||
}
|
}
|
||||||
if ((dflags.includes("--halloween"))||(dflags.includes("halloween"))) {
|
if (dflags.includes("--halloween")) {
|
||||||
console.debug(`metrics/compute/${login} > applying dflag --halloween`)
|
console.debug(`metrics/compute/${login} > applying dflag --halloween`)
|
||||||
//Haloween color replacer
|
//Haloween color replacer
|
||||||
const halloween = content => content
|
const halloween = content => content
|
||||||
@@ -125,6 +125,10 @@
|
|||||||
return {name:"dflag.halloween", result:true}
|
return {name:"dflag.halloween", result:true}
|
||||||
})())
|
})())
|
||||||
}
|
}
|
||||||
|
if (dflags.includes("--error")) {
|
||||||
|
console.debug(`metrics/compute/${login} > applying dflag --error`)
|
||||||
|
throw new Error("Failed as requested by --error flag")
|
||||||
|
}
|
||||||
|
|
||||||
//Results
|
//Results
|
||||||
return null
|
return null
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ inputs:
|
|||||||
- --cakeday
|
- --cakeday
|
||||||
- --hireable
|
- --hireable
|
||||||
- --halloween
|
- --halloween
|
||||||
|
- --error
|
||||||
|
|
||||||
# Dry-run mode (perform generation without pushing it)
|
# Dry-run mode (perform generation without pushing it)
|
||||||
dryrun:
|
dryrun:
|
||||||
|
|||||||
Reference in New Issue
Block a user