@dropthis/cli 0.19.0 → 0.20.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.cjs CHANGED
@@ -916,13 +916,13 @@ async function runDoctor(_input, deps) {
916
916
  const authSource = credential?.source ?? "missing";
917
917
  const storageBackend = stored?.storage ?? "none";
918
918
  const pairs = [
919
- ["Version", "0.19.0"],
919
+ ["Version", "0.20.0"],
920
920
  ["Auth", authSource],
921
921
  ["Storage", storageBackend]
922
922
  ];
923
923
  writeKv(deps, pairs, {
924
924
  ok: true,
925
- version: "0.19.0",
925
+ version: "0.20.0",
926
926
  auth: { source: authSource },
927
927
  storage: { backend: storageBackend }
928
928
  });
@@ -997,6 +997,14 @@ function printNextHints(deps, hints, hostname, dns) {
997
997
  `);
998
998
  }
999
999
  }
1000
+ function printConsoleHandoff(deps, domain) {
1001
+ if (domain.status === "live" || !domain.consoleUrl) return;
1002
+ deps.stdout(
1003
+ `
1004
+ ${hint(`Or finish it in the console: ${domain.consoleUrl}`)}
1005
+ `
1006
+ );
1007
+ }
1000
1008
  function computeSleepMs(records, elapsedMs, timeoutMs) {
1001
1009
  const maxRetryAfter = records.reduce(
1002
1010
  (max, r) => Math.max(max, r.retryAfter ?? 0),
@@ -1031,6 +1039,7 @@ async function runDomainsConnect(input, deps) {
1031
1039
  `);
1032
1040
  }
1033
1041
  printNextHints(deps, domain.next, domain.hostname, domain.dns);
1042
+ printConsoleHandoff(deps, domain);
1034
1043
  } else {
1035
1044
  writeJson(deps, { ok: true, domain });
1036
1045
  }
@@ -1111,6 +1120,7 @@ async function runDomainsStatus(idOrHostname, _input, deps) {
1111
1120
  `);
1112
1121
  }
1113
1122
  printNextHints(deps, domain.next, domain.hostname, domain.dns);
1123
+ printConsoleHandoff(deps, domain);
1114
1124
  } else {
1115
1125
  writeJson(deps, { ok: true, domain });
1116
1126
  }
@@ -1144,6 +1154,7 @@ async function runDomainsVerify(idOrHostname, input, deps, sleep = defaultSleep)
1144
1154
  `);
1145
1155
  }
1146
1156
  printNextHints(deps, domain.next, domain.hostname, domain.dns);
1157
+ printConsoleHandoff(deps, domain);
1147
1158
  } else {
1148
1159
  writeJson(deps, { ok: true, domain });
1149
1160
  }
@@ -2648,7 +2659,7 @@ function buildProgram(options = {}) {
2648
2659
  ` ${import_picocolors6.default.cyan("dropthis login")}`,
2649
2660
  ` ${import_picocolors6.default.cyan("dropthis publish ./dist")}`
2650
2661
  ].join("\n")
2651
- ).version("0.19.0").configureHelp({
2662
+ ).version("0.20.0").configureHelp({
2652
2663
  subcommandTerm(cmd) {
2653
2664
  const args = cmd.registeredArguments.map((a) => {
2654
2665
  const name = a.name();
@@ -3221,7 +3232,7 @@ ${import_picocolors6.default.bold("Canonical vs raw URLs:")}`,
3221
3232
  );
3222
3233
  const result = await runUpgrade(commandOptions, {
3223
3234
  ...deps,
3224
- currentVersion: "0.19.0"
3235
+ currentVersion: "0.20.0"
3225
3236
  });
3226
3237
  process.exitCode = result.exitCode;
3227
3238
  });
@@ -3465,7 +3476,7 @@ var showNotice = shouldShowNotice({
3465
3476
  if (showNotice) {
3466
3477
  const notice = noticeFromCache({
3467
3478
  cache: updateCache,
3468
- currentVersion: "0.19.0"
3479
+ currentVersion: "0.20.0"
3469
3480
  });
3470
3481
  if (notice) {
3471
3482
  process.stderr.write(`