periderm-cli 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,6 +50,11 @@ program
|
|
|
50
50
|
verifySpinner.fail(`Couldn't connect — ${v.error}. Run \`periderm login\` again.`);
|
|
51
51
|
process.exit(1);
|
|
52
52
|
}
|
|
53
|
+
if (process.env.CI && v.plan === "starter") {
|
|
54
|
+
verifySpinner.fail("Automated CI/CD reporting requires the Scale or Unlimited plan.");
|
|
55
|
+
console.info(chalk.yellow(`\nUpgrade at ${cfg.apiUrl}/dashboard/billing\n`));
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
53
58
|
if (v.plan !== "unlimited" && (v.scans_remaining === undefined || v.scans_remaining <= 0)) {
|
|
54
59
|
verifySpinner.fail(`No scans left on your ${v.plan} plan.`);
|
|
55
60
|
console.info(chalk.yellow(`\nRenew or upgrade at ${cfg.apiUrl}/dashboard/billing\n`));
|