@theholocron/cli 3.56.0 → 3.57.0
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/cli.mjs +23 -0
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -4655,6 +4655,29 @@ async function runSetup(input) {
|
|
|
4655
4655
|
}
|
|
4656
4656
|
print(formatStep(steps[steps.length - 1]));
|
|
4657
4657
|
}
|
|
4658
|
+
if (loader.has("errors")) {
|
|
4659
|
+
const errors = loader.get("errors");
|
|
4660
|
+
print(style.step("errors"));
|
|
4661
|
+
if (errors.ensureProject) {
|
|
4662
|
+
let dsn;
|
|
4663
|
+
steps.push(await runStep("errors", `ensureProject ${config.name}`, dryRun, async () => {
|
|
4664
|
+
const result = await errors.ensureProject({ name: config.name });
|
|
4665
|
+
dsn = result.dsn;
|
|
4666
|
+
return `project ${result.alreadyExists ? "exists" : "created"}`;
|
|
4667
|
+
}));
|
|
4668
|
+
print(formatStep(steps[steps.length - 1]));
|
|
4669
|
+
if (dsn && loader.has("secrets")) {
|
|
4670
|
+
const secrets = loader.get("secrets");
|
|
4671
|
+
const { envKeys } = await errors.describe();
|
|
4672
|
+
for (const key of envKeys) {
|
|
4673
|
+
steps.push(await runStep("errors", `secrets set ${key}`, dryRun, async () => {
|
|
4674
|
+
await secrets.setSecret({ kind: "repo" }, key, dsn);
|
|
4675
|
+
}));
|
|
4676
|
+
print(formatStep(steps[steps.length - 1]));
|
|
4677
|
+
}
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
}
|
|
4658
4681
|
if (loader.has("logs")) {
|
|
4659
4682
|
const logs = loader.get("logs");
|
|
4660
4683
|
print(style.step("logs"));
|