@zuplo/cli 1.52.0 → 1.53.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/cmds/link.js CHANGED
@@ -3,7 +3,7 @@ import { validLinkDirectoryValidator } from "../common/validators/file-system-va
3
3
  import { YargsChecker } from "../common/validators/lib.js";
4
4
  import { link } from "../link/handler.js";
5
5
  export default {
6
- desc: "Link a local directory to a Zuplo project",
6
+ desc: "Links information from your Zuplo account to your local machine",
7
7
  command: "link",
8
8
  builder: (yargs) => {
9
9
  return yargs
@@ -3,7 +3,7 @@ import { readFile } from "node:fs/promises";
3
3
  import { join } from "node:path";
4
4
  import { ZUPLO_AUTH_FILE_NAME } from "../common/constants.js";
5
5
  import { logger } from "../common/logger.js";
6
- import { printDiagnosticsToConsole } from "../common/output.js";
6
+ import { printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, } from "../common/output.js";
7
7
  import settings from "../common/settings.js";
8
8
  import { ZUPLO_XDG_STATE_HOME } from "../common/xdg/lib.js";
9
9
  import { pullSystemConfig, safeMergeConfig } from "./populate.js";
@@ -73,5 +73,8 @@ export async function link(argv) {
73
73
  account: accountJson.find((acc) => acc.name === account),
74
74
  project: projectJson.data.find((prj) => prj.name === project),
75
75
  });
76
+ printResultToConsoleAndExitGracefully(`
77
+ Successfully linked your local directory to the ${project} project in the ${account} account.
78
+ .env.zuplo and zuplo.jsonc have been updated with the new values.`);
76
79
  }
77
80
  //# sourceMappingURL=handler.js.map
@@ -56,6 +56,7 @@ export async function pullSystemConfig(dir, options) {
56
56
  const content = `
57
57
  # This file is auto-generated from zup link. Please do not edit it manually.
58
58
  # It will be auto-generated afresh the next time you run zup link.
59
+ # If you wish to add your own environment variables, create a separate .env file.
59
60
 
60
61
  ZUPLO_API_KEY_SERVICE_BUCKET_NAME=z${options.project.id
61
62
  .toLowerCase()
@@ -21,7 +21,7 @@ export async function browserAuth(authorizationUrl) {
21
21
  opn(authorizationUrl);
22
22
  let iterations = 0;
23
23
  while (params === undefined) {
24
- if (iterations++ > 60) {
24
+ if (iterations++ > 600) {
25
25
  server.close();
26
26
  printCriticalFailureToConsoleAndExit("Timed out waiting for login in the browser. Run the zup login command again.");
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "author": "Zuplo, Inc.",