mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add --safe-chain-skip-minimum-package-age cli flag
This commit is contained in:
parent
f64ee3bccf
commit
752504dcc8
3 changed files with 103 additions and 3 deletions
|
|
@ -42,6 +42,13 @@ export function getMinimumPackageAgeHours() {
|
|||
return defaultMinimumPackageAge;
|
||||
}
|
||||
|
||||
const defaultSkipMinimumPackageAge = false;
|
||||
export function skipMinimumPackageAge() {
|
||||
return false;
|
||||
const cliValue = cliArguments.getSkipMinimumPackageAge();
|
||||
|
||||
if (cliValue === true) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return defaultSkipMinimumPackageAge;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue