Add input to make the dependencies caching strict

This commit is contained in:
Paul Merlin
2020-06-15 13:05:25 +02:00
parent 95e20daa83
commit 053762c1c1
5 changed files with 18 additions and 5 deletions

View File

@@ -16,3 +16,9 @@ export function inputArrayOrNull(name: string): string[] | null {
.map(s => s.trim())
.filter(s => s !== '')
}
export function inputBoolean(name: string, defaultValue = false): boolean {
const string = inputOrNull(name)
if (!string) return defaultValue
return string === 'true'
}