@zuplo/cli 6.63.3 → 6.63.4
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/delete.d.ts.map +1 -1
- package/dist/cmds/delete.js +3 -6
- package/dist/cmds/delete.js.map +1 -1
- package/dist/cmds/deploy.d.ts.map +1 -1
- package/dist/cmds/deploy.js +6 -13
- package/dist/cmds/deploy.js.map +1 -1
- package/dist/cmds/dev.d.ts.map +1 -1
- package/dist/cmds/dev.js +1 -0
- package/dist/cmds/dev.js.map +1 -1
- package/dist/cmds/editor.d.ts.map +1 -1
- package/dist/cmds/editor.js +8 -0
- package/dist/cmds/editor.js.map +1 -1
- package/dist/cmds/link.d.ts.map +1 -1
- package/dist/cmds/link.js +4 -14
- package/dist/cmds/link.js.map +1 -1
- package/dist/cmds/list.d.ts.map +1 -1
- package/dist/cmds/list.js +4 -10
- package/dist/cmds/list.js.map +1 -1
- package/dist/cmds/mtls-certificates/create.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/create.js +16 -1
- package/dist/cmds/mtls-certificates/create.js.map +1 -1
- package/dist/cmds/mtls-certificates/delete.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/delete.js +12 -1
- package/dist/cmds/mtls-certificates/delete.js.map +1 -1
- package/dist/cmds/mtls-certificates/describe.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/describe.js +12 -1
- package/dist/cmds/mtls-certificates/describe.js.map +1 -1
- package/dist/cmds/mtls-certificates/index.js +1 -1
- package/dist/cmds/mtls-certificates/index.js.map +1 -1
- package/dist/cmds/mtls-certificates/list.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/list.js +12 -1
- package/dist/cmds/mtls-certificates/list.js.map +1 -1
- package/dist/cmds/mtls-certificates/update.d.ts.map +1 -1
- package/dist/cmds/mtls-certificates/update.js +16 -1
- package/dist/cmds/mtls-certificates/update.js.map +1 -1
- package/dist/cmds/open-api/convert.d.ts.map +1 -1
- package/dist/cmds/open-api/convert.js +15 -0
- package/dist/cmds/open-api/convert.js.map +1 -1
- package/dist/cmds/open-api/merge.d.ts.map +1 -1
- package/dist/cmds/open-api/merge.js +15 -0
- package/dist/cmds/open-api/merge.js.map +1 -1
- package/dist/cmds/open-api/overlay.d.ts.map +1 -1
- package/dist/cmds/open-api/overlay.js +15 -0
- package/dist/cmds/open-api/overlay.js.map +1 -1
- package/dist/cmds/project/create.d.ts.map +1 -1
- package/dist/cmds/project/create.js +12 -0
- package/dist/cmds/project/create.js.map +1 -1
- package/dist/cmds/proxies/create.d.ts.map +1 -1
- package/dist/cmds/proxies/create.js +11 -0
- package/dist/cmds/proxies/create.js.map +1 -1
- package/dist/cmds/proxies/delete.d.ts.map +1 -1
- package/dist/cmds/proxies/delete.js +11 -0
- package/dist/cmds/proxies/delete.js.map +1 -1
- package/dist/cmds/proxies/describe.d.ts.map +1 -1
- package/dist/cmds/proxies/describe.js +11 -0
- package/dist/cmds/proxies/describe.js.map +1 -1
- package/dist/cmds/proxies/update.d.ts.map +1 -1
- package/dist/cmds/proxies/update.js +11 -0
- package/dist/cmds/proxies/update.js.map +1 -1
- package/dist/cmds/source/import-openapi.d.ts.map +1 -1
- package/dist/cmds/source/import-openapi.js +1 -0
- package/dist/cmds/source/import-openapi.js.map +1 -1
- package/dist/cmds/source/migrate.d.ts.map +1 -1
- package/dist/cmds/source/migrate.js +15 -0
- package/dist/cmds/source/migrate.js.map +1 -1
- package/dist/cmds/source/upgrade.d.ts.map +1 -1
- package/dist/cmds/source/upgrade.js +11 -0
- package/dist/cmds/source/upgrade.js.map +1 -1
- package/dist/cmds/test.d.ts.map +1 -1
- package/dist/cmds/test.js +1 -0
- package/dist/cmds/test.js.map +1 -1
- package/dist/cmds/tunnel/create.d.ts.map +1 -1
- package/dist/cmds/tunnel/create.js +8 -0
- package/dist/cmds/tunnel/create.js.map +1 -1
- package/dist/cmds/tunnel/delete.d.ts.map +1 -1
- package/dist/cmds/tunnel/delete.js +11 -0
- package/dist/cmds/tunnel/delete.js.map +1 -1
- package/dist/cmds/tunnel/describe.d.ts.map +1 -1
- package/dist/cmds/tunnel/describe.js +11 -0
- package/dist/cmds/tunnel/describe.js.map +1 -1
- package/dist/cmds/tunnel/list.d.ts.map +1 -1
- package/dist/cmds/tunnel/list.js +8 -0
- package/dist/cmds/tunnel/list.js.map +1 -1
- package/dist/cmds/tunnel/rotate-token.d.ts.map +1 -1
- package/dist/cmds/tunnel/rotate-token.js +11 -0
- package/dist/cmds/tunnel/rotate-token.js.map +1 -1
- package/dist/cmds/tunnel/services/describe.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/describe.js +11 -0
- package/dist/cmds/tunnel/services/describe.js.map +1 -1
- package/dist/cmds/tunnel/services/update.d.ts.map +1 -1
- package/dist/cmds/tunnel/services/update.js +11 -0
- package/dist/cmds/tunnel/services/update.js.map +1 -1
- package/dist/cmds/variable/create.d.ts.map +1 -1
- package/dist/cmds/variable/create.js +15 -0
- package/dist/cmds/variable/create.js.map +1 -1
- package/dist/cmds/variable/update.d.ts.map +1 -1
- package/dist/cmds/variable/update.js +11 -0
- package/dist/cmds/variable/update.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/cmds/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAaV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../src/cmds/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAaV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAiDf,OAAO;;AApD/B,wBAwDE"}
|
package/dist/cmds/delete.js
CHANGED
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "delete",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 delete --url <url> [options]")
|
|
14
15
|
.option("api-key", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The API Key from Zuplo",
|
|
@@ -40,17 +41,13 @@ export default {
|
|
|
40
41
|
.demandOption(["url"])
|
|
41
42
|
.example([
|
|
42
43
|
[
|
|
43
|
-
"$0 delete --url https://my-api-dev-123abc.zuplo.app
|
|
44
|
+
"$0 delete --url https://my-api-dev-123abc.zuplo.app",
|
|
44
45
|
"Delete a deployed environment by its URL",
|
|
45
46
|
],
|
|
46
47
|
[
|
|
47
|
-
"$0 delete --url https://my-api-dev-123abc.zuplo.app --
|
|
48
|
+
"$0 delete --url https://my-api-dev-123abc.zuplo.app --wait",
|
|
48
49
|
"Delete an environment and wait until the deletion is complete",
|
|
49
50
|
],
|
|
50
|
-
[
|
|
51
|
-
"$0 delete --url https://my-api-dev-123abc.zuplo.app --api-key YOUR_API_KEY --project my-project --account my-account",
|
|
52
|
-
"Delete with explicit project and account specification",
|
|
53
|
-
],
|
|
54
51
|
])
|
|
55
52
|
.middleware([
|
|
56
53
|
setBlocking,
|
package/dist/cmds/delete.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../src/cmds/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAa,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC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AS,CAAC,IAAiB,CAAC,CAAC;IACrC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { authenticate } from \"../common/middleware/authentication.js\";\nimport { configure } from \"../common/middleware/user-configuration.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { Arguments, deleteZup } from \"../delete/handler.js\";\nimport { fetchAccount } from \"../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Deletes the Zuplo API at the URL\",\n command: \"delete\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 delete --url <url> [options]\")\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"url\", {\n type: \"string\",\n describe: \"The URL of the Zuplo API to delete\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"wait\", {\n type: \"boolean\",\n describe: \"Should the CLI wait until the Zuplo API is deleted\",\n })\n .option(\"self-hosted-endpoint\", {\n type: \"string\",\n describe: \"The endpoint of your self-hosted service to deploy to\",\n })\n .boolean(\"wait\")\n .demandOption([\"url\"])\n .example([\n [\n \"$0 delete --url https://my-api-dev-123abc.zuplo.app\",\n \"Delete a deployed environment by its URL\",\n ],\n [\n \"$0 delete --url https://my-api-dev-123abc.zuplo.app --wait\",\n \"Delete an environment and wait until the deletion is complete\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo delete\" });\n await deleteZup(argv as Arguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/cmds/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/cmds/deploy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBA6Ef,OAAO;;AAhF/B,wBAoFE"}
|
package/dist/cmds/deploy.js
CHANGED
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
command: "deploy",
|
|
13
13
|
builder: (yargs) => {
|
|
14
14
|
return yargs
|
|
15
|
+
.usage("$0 deploy [options]")
|
|
15
16
|
.option("api-key", {
|
|
16
17
|
type: "string",
|
|
17
18
|
describe: "The API Key from Zuplo",
|
|
@@ -61,24 +62,16 @@ export default {
|
|
|
61
62
|
.boolean("verify-remote")
|
|
62
63
|
.example([
|
|
63
64
|
[
|
|
64
|
-
"$0 deploy
|
|
65
|
+
"$0 deploy",
|
|
65
66
|
"Deploy the current Git branch using the branch name as the environment name",
|
|
66
67
|
],
|
|
67
68
|
[
|
|
68
|
-
"$0 deploy --
|
|
69
|
-
"
|
|
69
|
+
"$0 deploy --environment my-env",
|
|
70
|
+
"Override the environment name instead of using the Git branch name",
|
|
70
71
|
],
|
|
71
72
|
[
|
|
72
|
-
"$0 deploy --
|
|
73
|
-
"
|
|
74
|
-
],
|
|
75
|
-
[
|
|
76
|
-
"ZUPLO_API_KEY=YOUR_API_KEY $0 deploy",
|
|
77
|
-
"Use environment variable for API key",
|
|
78
|
-
],
|
|
79
|
-
[
|
|
80
|
-
"git checkout -b my-feature && $0 deploy",
|
|
81
|
-
"Create a new branch and deploy it as a new environment",
|
|
73
|
+
"$0 deploy --account my-account --project my-project --environment my-env",
|
|
74
|
+
"Explicitly specify the account, project, and environment",
|
|
82
75
|
],
|
|
83
76
|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gBACX,6EAA6E;aAC9E;YACD;gBACE,gCAAgC;gBAChC,oEAAoE;aACrE;YACD;gBACE,0EAA0E;gBAC1E,0DAA0D;aAC3D;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;QACpD,MAAM,MAAM,CAAC,IAAiB,CAAC,CAAC;IAClC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { authenticate } from \"../common/middleware/authentication.js\";\nimport { configure } from \"../common/middleware/user-configuration.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { Arguments, deploy } from \"../deploy/handler.js\";\nimport { fetchAccount } from \"../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../common/middleware/get-project-param.js\";\nimport { fetchEnvironment } from \"../common/middleware/get-environment-param.js\";\n\nexport default {\n desc: \"Deploys current Git branch of the current directory\",\n command: \"deploy\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 deploy [options]\")\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"project\", {\n type: \"string\",\n hidden: true,\n describe: \"The project name\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: true,\n hidden: true,\n })\n .option(\"verify-remote\", {\n deprecated: true,\n type: \"boolean\",\n describe:\n \"Verify that this Git repository matches the one configured on Zuplo. Use --no-verify-remote to disable.\",\n default: false,\n })\n .option(\"environment\", {\n type: \"string\",\n describe:\n \"The value to use for environment name, instead of the current branch name\",\n })\n .option(\"self-hosted-endpoint\", {\n type: \"string\",\n describe: \"The endpoint of your self-hosted service to deploy to\",\n })\n .option(\"override-repo-url\", {\n type: \"string\",\n describe: \"Override the repo url reference\",\n default: undefined,\n hidden: true,\n })\n .option(\"fetch-environments\", {\n type: \"boolean\",\n describe:\n \"Fetch the environments for your project from Zuplo. If this is false, then the environment will automatically be detected from the git branch.\",\n default: false,\n })\n .boolean(\"verify-remote\")\n .example([\n [\n \"$0 deploy\",\n \"Deploy the current Git branch using the branch name as the environment name\",\n ],\n [\n \"$0 deploy --environment my-env\",\n \"Override the environment name instead of using the Git branch name\",\n ],\n [\n \"$0 deploy --account my-account --project my-project --environment my-env\",\n \"Explicitly specify the account, project, and environment\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n fetchEnvironment,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo deploy\" });\n await deploy(argv as Arguments);\n },\n};\n"]}
|
package/dist/cmds/dev.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cmds/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAWV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cmds/dev.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAWV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAwDf,OAAO;;AA3D/B,wBAwEE"}
|
package/dist/cmds/dev.js
CHANGED
package/dist/cmds/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRo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G;YACD,CAAC,oBAAoB,EAAE,yCAAyC,CAAC;YACjE;gBACE,0BAA0B;gBAC1B,sDAAsD;aACvD;YACD;gBACE,0BAA0B;gBAC1B,2DAA2D;aAC5D;SACF,CAAC;aACD,UAAU,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;aACnC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,OAAO,MAAM,IAAI,YAAY,CAC3B,IAAI,qBAAqB,EAAE,CAC5B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC;YACjB,IAAI;YACJ,UAAU,EAAE;gBACV,YAAY,EAAG,IAAkB,CAAC,WAAW,CAAC;gBAC9C,oCAAoC,EAAG,IAAkB,CACvD,iCAAiC,CAClC;aACF;YACD,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC,IAAiB,CAAC,CAAC;IAC/B,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { ZuploProjectValidator } from \"../common/validators/file-system-validator.js\";\nimport { YargsChecker } from \"../common/validators/lib.js\";\nimport { Arguments, dev } from \"../dev/handler.js\";\n\nexport default {\n desc: \"Runs the Zuplo API locally\",\n command: \"dev\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: true,\n hidden: true,\n })\n .option(\"start-editor\", {\n type: \"boolean\",\n describe: \"Start the editor with the local server\",\n default: true,\n })\n .option(\"port\", {\n type: \"number\",\n describe: \"The port to run the local server on\",\n default: 9000,\n })\n .option(\"editor-port\", {\n type: \"number\",\n describe: \"The port to run the route designer on\",\n default: 9100,\n })\n .option(\"debug-port\", {\n type: \"number\",\n describe: \"The port to run the Chrome inspector on\",\n })\n .option(\"unsafely-ignore-certificate-errors\", {\n type: \"boolean\",\n describe: \"Unsafely ignore certificate errors\",\n default: false,\n })\n .example([\n [\n \"$0 dev\",\n \"Start the local development server with default settings (port 9000 for API, port 9100 for editor)\",\n ],\n [\"$0 dev --port 8080\", \"Start the local server on a custom port\"],\n [\n \"$0 dev --no-start-editor\",\n \"Start only the API server without opening the editor\",\n ],\n [\n \"$0 dev --debug-port 9229\",\n \"Start with Chrome DevTools inspector enabled on port 9229\",\n ],\n ])\n .middleware([setBlocking, identify])\n .check(async (argv) => {\n return await new YargsChecker<typeof argv>(\n new ZuploProjectValidator()\n ).check(argv);\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({\n argv,\n properties: {\n \"debug-port\": (argv as Arguments)[\"debugPort\"],\n \"unsafely-ignore-certificate-errors\": (argv as Arguments)[\n \"unsafelyIgnoreCertificateErrors\"\n ],\n },\n event: \"zuplo dev\",\n });\n await dev(argv as Arguments);\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/cmds/dev.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAa,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAe;IACb,IAAI,EAAE,4BAA4B;IAClC,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CAAC,kBAAkB,CAAC;aACzB,MAAM,CAAC,K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;gBACV,YAAY,EAAG,IAAkB,CAAC,WAAW,CAAC;gBAC9C,oCAAoC,EAAG,IAAkB,CACvD,iCAAiC,CAClC;aACF;YACD,KAAK,EAAE,WAAW;SACnB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC,IAAiB,CAAC,CAAC;IAC/B,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { ZuploProjectValidator } from \"../common/validators/file-system-validator.js\";\nimport { YargsChecker } from \"../common/validators/lib.js\";\nimport { Arguments, dev } from \"../dev/handler.js\";\n\nexport default {\n desc: \"Runs the Zuplo API locally\",\n command: \"dev\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 dev [options]\")\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: true,\n hidden: true,\n })\n .option(\"start-editor\", {\n type: \"boolean\",\n describe: \"Start the editor with the local server\",\n default: true,\n })\n .option(\"port\", {\n type: \"number\",\n describe: \"The port to run the local server on\",\n default: 9000,\n })\n .option(\"editor-port\", {\n type: \"number\",\n describe: \"The port to run the route designer on\",\n default: 9100,\n })\n .option(\"debug-port\", {\n type: \"number\",\n describe: \"The port to run the Chrome inspector on\",\n })\n .option(\"unsafely-ignore-certificate-errors\", {\n type: \"boolean\",\n describe: \"Unsafely ignore certificate errors\",\n default: false,\n })\n .example([\n [\n \"$0 dev\",\n \"Start the local development server with default settings (port 9000 for API, port 9100 for editor)\",\n ],\n [\"$0 dev --port 8080\", \"Start the local server on a custom port\"],\n [\n \"$0 dev --no-start-editor\",\n \"Start only the API server without opening the editor\",\n ],\n [\n \"$0 dev --debug-port 9229\",\n \"Start with Chrome DevTools inspector enabled on port 9229\",\n ],\n ])\n .middleware([setBlocking, identify])\n .check(async (argv) => {\n return await new YargsChecker<typeof argv>(\n new ZuploProjectValidator()\n ).check(argv);\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({\n argv,\n properties: {\n \"debug-port\": (argv as Arguments)[\"debugPort\"],\n \"unsafely-ignore-certificate-errors\": (argv as Arguments)[\n \"unsafelyIgnoreCertificateErrors\"\n ],\n },\n event: \"zuplo dev\",\n });\n await dev(argv as Arguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/cmds/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAYV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/cmds/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAYV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBA6Bf,OAAO;;AAjC/B,wBAqCE"}
|
package/dist/cmds/editor.js
CHANGED
|
@@ -9,6 +9,7 @@ export default {
|
|
|
9
9
|
command: "editor",
|
|
10
10
|
builder: (yargs) => {
|
|
11
11
|
return yargs
|
|
12
|
+
.usage("$0 editor [options]")
|
|
12
13
|
.option("dir", {
|
|
13
14
|
type: "string",
|
|
14
15
|
describe: "The directory containing your Zuplo API",
|
|
@@ -21,6 +22,13 @@ export default {
|
|
|
21
22
|
describe: "The port to run the route designer on",
|
|
22
23
|
default: "9100",
|
|
23
24
|
})
|
|
25
|
+
.example([
|
|
26
|
+
["$0 editor", "Start the Open API Designer on the default port (9100)"],
|
|
27
|
+
[
|
|
28
|
+
"$0 editor --port 8080",
|
|
29
|
+
"Start the Open API Designer on a custom port",
|
|
30
|
+
],
|
|
31
|
+
])
|
|
24
32
|
.middleware([setBlocking, identify])
|
|
25
33
|
.check(async (argv) => {
|
|
26
34
|
return await new YargsChecker(new ZuploProjectValidator()).check(argv);
|
package/dist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,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { ZuploProjectValidator } from \"../common/validators/file-system-validator.js\";\nimport { YargsChecker } from \"../common/validators/lib.js\";\nimport { EditorArgs, editor } from \"../editor/handler.js\";\n\nexport default {\n desc: \"Starts a local Open API Designer\",\n command: \"editor\",\n\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: false,\n hidden: true,\n })\n .option(\"port\", {\n type: \"number\",\n describe: \"The port to run the route designer on\",\n default: \"9100\",\n })\n .middleware([setBlocking, identify])\n .check(async (argv) => {\n return await new YargsChecker<typeof argv>(\n new ZuploProjectValidator()\n ).check(argv);\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo editor\" });\n await editor(argv as EditorArgs);\n },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/cmds/editor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAc,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe;IACb,IAAI,EAAE,kCAAkC;IACxC,OAAO,EAAE,QAAQ;IAEjB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CAAC,qBAAqB,CAAC;aAC5B,MAAM,CAAC,KAAK,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,yCAAyC;YACnD,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,IAAI;SACb,CAAC;aACD,MAAM,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,uCAAuC;YACjD,OAAO,EAAE,MAAM;SAChB,CAAC;aACD,OAAO,CAAC;YACP,CAAC,WAAW,EAAE,wDAAwD,CAAC;YACvE;gBACE,uBAAuB;gBACvB,8CAA8C;aAC/C;SACF,CAAC;aACD,UAAU,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;aACnC,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,OAAO,MAAM,IAAI,YAAY,CAC3B,IAAI,qBAAqB,EAAE,CAC5B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC;QACpD,MAAM,MAAM,CAAC,IAAkB,CAAC,CAAC;IACnC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { ZuploProjectValidator } from \"../common/validators/file-system-validator.js\";\nimport { YargsChecker } from \"../common/validators/lib.js\";\nimport { EditorArgs, editor } from \"../editor/handler.js\";\n\nexport default {\n desc: \"Starts a local Open API Designer\",\n command: \"editor\",\n\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 editor [options]\")\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: false,\n hidden: true,\n })\n .option(\"port\", {\n type: \"number\",\n describe: \"The port to run the route designer on\",\n default: \"9100\",\n })\n .example([\n [\"$0 editor\", \"Start the Open API Designer on the default port (9100)\"],\n [\n \"$0 editor --port 8080\",\n \"Start the Open API Designer on a custom port\",\n ],\n ])\n .middleware([setBlocking, identify])\n .check(async (argv) => {\n return await new YargsChecker<typeof argv>(\n new ZuploProjectValidator()\n ).check(argv);\n });\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo editor\" });\n await editor(argv as EditorArgs);\n },\n};\n"]}
|
package/dist/cmds/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/cmds/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/cmds/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAkDf,OAAO;;AArD/B,wBAyDE"}
|
package/dist/cmds/link.js
CHANGED
|
@@ -12,6 +12,7 @@ export default {
|
|
|
12
12
|
command: "link",
|
|
13
13
|
builder: (yargs) => {
|
|
14
14
|
return yargs
|
|
15
|
+
.usage("$0 link [options]")
|
|
15
16
|
.option("dir", {
|
|
16
17
|
type: "string",
|
|
17
18
|
describe: "The directory containing your Zuplo API",
|
|
@@ -42,21 +43,10 @@ export default {
|
|
|
42
43
|
default: true,
|
|
43
44
|
})
|
|
44
45
|
.example([
|
|
46
|
+
["$0 link", "Link your local project to your Zuplo account"],
|
|
45
47
|
[
|
|
46
|
-
"$0 link --
|
|
47
|
-
"
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
"$0 link --api-key YOUR_API_KEY --project my-project --account my-account",
|
|
51
|
-
"Link to a specific project and account",
|
|
52
|
-
],
|
|
53
|
-
[
|
|
54
|
-
"$0 link --api-key YOUR_API_KEY --environment production",
|
|
55
|
-
"Link to a specific environment",
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
"ZUPLO_API_KEY=YOUR_API_KEY $0 link",
|
|
59
|
-
"Use environment variable for API key",
|
|
48
|
+
"$0 link --account my-account --project my-project --environment my-env",
|
|
49
|
+
"Explicitly specify the account, project, and environment",
|
|
60
50
|
],
|
|
61
51
|
])
|
|
62
52
|
.middleware([
|
package/dist/cmds/link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/cmds/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAa,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AAEjF,eAAe;IACb,IAAI,EAAE,0EAA0E;IAChF,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,MAAM,CAAC,KAAK,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,yCAAyC;YACnD,OAAO,EAAE,GAAG;YACZ,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,IAAI;SACb,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;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,GAAG;YACZ,SAAS,EAAE,IAAI;YACf,MAAM,EAAE,IAAI;SACb,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,aAAa,EAAE;YACrB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,sBAAsB;SACjC,CAAC;aACD,MAAM,CAAC,oBAAoB,EAAE;YAC5B,IAAI,EAAE,SAAS;YACf,QAAQ,EACN,gJAAgJ;YAClJ,OAAO,EAAE,IAAI;SACd,CAAC;aACD,OAAO,CAAC;YACP,CAAC,SAAS,EAAE,+CAA+C,CAAC;YAC5D;gBACE,wEAAwE;gBACxE,0DAA0D;aAC3D;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,IAAiB,CAAC,CAAC;IAChC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { authenticate } from \"../common/middleware/authentication.js\";\nimport { configure } from \"../common/middleware/user-configuration.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { Arguments, link } from \"../link/handler.js\";\nimport { fetchAccount } from \"../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../common/middleware/get-project-param.js\";\nimport { fetchEnvironment } from \"../common/middleware/get-environment-param.js\";\n\nexport default {\n desc: \"Links information from your Zuplo account to your local machine allowing\",\n command: \"link\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 link [options]\")\n .option(\"dir\", {\n type: \"string\",\n describe: \"The directory containing your Zuplo API\",\n default: \".\",\n normalize: true,\n hidden: true,\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"environment\", {\n type: \"string\",\n describe: \"The environment name\",\n })\n .option(\"fetch-environments\", {\n type: \"boolean\",\n describe:\n \"Fetch the environments for your project from Zuplo. If this is false, then the environment will automatically be detected from the git branch.\",\n default: true,\n })\n .example([\n [\"$0 link\", \"Link your local project to your Zuplo account\"],\n [\n \"$0 link --account my-account --project my-project --environment my-env\",\n \"Explicitly specify the account, project, and environment\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n fetchEnvironment,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo link\" });\n await link(argv as Arguments);\n },\n};\n"]}
|
package/dist/cmds/list.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/cmds/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAaV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/cmds/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAaV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAoCf,OAAO;;AAvC/B,wBA2CE"}
|
package/dist/cmds/list.js
CHANGED
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "list",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 list [options]")
|
|
14
15
|
.option("api-key", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The API Key from Zuplo",
|
|
@@ -29,17 +30,10 @@ export default {
|
|
|
29
30
|
describe: "The endpoint of your self-hosted service to deploy to",
|
|
30
31
|
})
|
|
31
32
|
.example([
|
|
33
|
+
["$0 list", "List all deployed environments for your project"],
|
|
32
34
|
[
|
|
33
|
-
"$0 list --
|
|
34
|
-
"
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
"$0 list --api-key YOUR_API_KEY --project my-project --account my-account",
|
|
38
|
-
"List environments for a specific project and account",
|
|
39
|
-
],
|
|
40
|
-
[
|
|
41
|
-
"ZUPLO_API_KEY=YOUR_API_KEY $0 list",
|
|
42
|
-
"Use environment variable for API key",
|
|
35
|
+
"$0 list --account my-account --project my-project",
|
|
36
|
+
"Explicitly specify the account and project",
|
|
43
37
|
],
|
|
44
38
|
])
|
|
45
39
|
.middleware([
|
package/dist/cmds/list.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/cmds/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AACvE,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAa,IAAI,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,Y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AC,mBAAmB,CAAC;aAC1B,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,sBAAsB,EAAE;YAC9B,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,uDAAuD;SAClE,CAAC;aACD,OAAO,CAAC;YACP,CAAC,SAAS,EAAE,iDAAiD,CAAC;YAC9D;gBACE,mDAAmD;gBACnD,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;QAClD,MAAM,IAAI,CAAC,IAAiB,CAAC,CAAC;IAChC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../common/analytics/lib.js\";\nimport { authenticate } from \"../common/middleware/authentication.js\";\nimport { configure } from \"../common/middleware/user-configuration.js\";\nimport { identify } from \"../common/middleware/user-identification.js\";\nimport setBlocking from \"../common/output.js\";\nimport { Arguments, list } from \"../list/handler.js\";\nimport { fetchAccount } from \"../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Lists all deployed Zuplo APIs\",\n command: \"list\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 list [options]\")\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"self-hosted-endpoint\", {\n type: \"string\",\n describe: \"The endpoint of your self-hosted service to deploy to\",\n })\n .example([\n [\"$0 list\", \"List all deployed environments for your project\"],\n [\n \"$0 list --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo list\" });\n await list(argv as Arguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBA4Df,OAAO;;AA/D/B,wBAmEE"}
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "create",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 mtls-certificates create --name <name> --cert <file> --key <file> --environment <env> [options]")
|
|
14
15
|
.option("name", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The name of the certificate (alphanumeric with underscores)",
|
|
@@ -42,6 +43,20 @@ export default {
|
|
|
42
43
|
describe: "The project name",
|
|
43
44
|
})
|
|
44
45
|
.demandOption(["name", "cert", "key", "environment"])
|
|
46
|
+
.example([
|
|
47
|
+
[
|
|
48
|
+
"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production",
|
|
49
|
+
"Create an mTLS certificate enabled for the production environment",
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"$0 mtls-certificates create --name dev_cert --cert ./cert.pem --key ./key.pem --environment development --environment preview",
|
|
53
|
+
"Create an mTLS certificate enabled for multiple environments",
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production --account my-account --project my-project",
|
|
57
|
+
"Explicitly specify the account and project",
|
|
58
|
+
],
|
|
59
|
+
])
|
|
45
60
|
.middleware([
|
|
46
61
|
setBlocking,
|
|
47
62
|
authenticate,
|
|
@@ -52,7 +67,7 @@ export default {
|
|
|
52
67
|
]);
|
|
53
68
|
},
|
|
54
69
|
handler: async (argv) => {
|
|
55
|
-
await captureEvent({ argv, event: "zuplo mtls-
|
|
70
|
+
await captureEvent({ argv, event: "zuplo mtls-certificate create" });
|
|
56
71
|
await create(argv);
|
|
57
72
|
},
|
|
58
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/create.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAe;I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Q;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC;aACpD,OAAO,CAAC;YACP;gBACE,uGAAuG;gBACvG,mEAAmE;aACpE;YACD;gBACE,+HAA+H;gBAC/H,8DAA8D;aAC/D;YACD;gBACE,iJAAiJ;gBACjJ,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QACrE,MAAM,MAAM,CAAC,IAAuB,CAAC,CAAC;IACxC,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { create } from \"../../mtls-certificates/create/handler.js\";\nimport { CreateArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Creates a new mTLS certificate for a project\",\n command: \"create\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\n \"$0 mtls-certificates create --name <name> --cert <file> --key <file> --environment <env> [options]\"\n )\n .option(\"name\", {\n type: \"string\",\n describe: \"The name of the certificate (alphanumeric with underscores)\",\n })\n .option(\"cert\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded certificate file\",\n })\n .option(\"key\", {\n type: \"string\",\n describe: \"Path to the PEM-encoded private key file\",\n })\n .option(\"environment\", {\n type: \"array\",\n describe:\n \"Environments where the certificate should be enabled (can be repeated: --environment development --environment production)\",\n choices: [\"development\", \"preview\", \"production\"],\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"name\", \"cert\", \"key\", \"environment\"])\n .example([\n [\n \"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production\",\n \"Create an mTLS certificate enabled for the production environment\",\n ],\n [\n \"$0 mtls-certificates create --name dev_cert --cert ./cert.pem --key ./key.pem --environment development --environment preview\",\n \"Create an mTLS certificate enabled for multiple environments\",\n ],\n [\n \"$0 mtls-certificates create --name my_cert --cert ./cert.pem --key ./key.pem --environment production --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate create\" });\n await create(argv as CreateArguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAwCf,OAAO;;AA3C/B,wBA+CE"}
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "delete",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 mtls-certificates delete --cert-id <id> [options]")
|
|
14
15
|
.option("cert-id", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The ID of the certificate to delete",
|
|
@@ -29,6 +30,16 @@ export default {
|
|
|
29
30
|
describe: "The project name",
|
|
30
31
|
})
|
|
31
32
|
.demandOption(["cert-id"])
|
|
33
|
+
.example([
|
|
34
|
+
[
|
|
35
|
+
"$0 mtls-certificates delete --cert-id cert_abc123",
|
|
36
|
+
"Delete an mTLS certificate",
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"$0 mtls-certificates delete --cert-id cert_abc123 --account my-account --project my-project",
|
|
40
|
+
"Explicitly specify the account and project",
|
|
41
|
+
],
|
|
42
|
+
])
|
|
32
43
|
.middleware([
|
|
33
44
|
setBlocking,
|
|
34
45
|
authenticate,
|
|
@@ -39,7 +50,7 @@ export default {
|
|
|
39
50
|
]);
|
|
40
51
|
},
|
|
41
52
|
handler: async (argv) => {
|
|
42
|
-
await captureEvent({ argv, event: "zuplo mtls-
|
|
53
|
+
await captureEvent({ argv, event: "zuplo mtls-certificate delete" });
|
|
43
54
|
await deleteCommand(argv);
|
|
44
55
|
},
|
|
45
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/delete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,WAAW,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAE1E,OAAO,EAAE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AM,2CAA2C,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAE5E,eAAe;IACb,IAAI,EAAE,mCAAmC;IACzC,OAAO,EAAE,QAAQ;IACjB,OAAO,EAAE,CAAC,KAAW,EAAiB,EAAE;QACtC,OAAO,KAAK;aACT,KAAK,CAAC,sDAAsD,CAAC;aAC7D,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,qCAAqC;SAChD,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,MAAM,CAAC,SAAS,EAAE;YACjB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;aACD,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;aACzB,OAAO,CAAC;YACP;gBACE,mDAAmD;gBACnD,4BAA4B;aAC7B;YACD;gBACE,6FAA6F;gBAC7F,4CAA4C;aAC7C;SACF,CAAC;aACD,UAAU,CAAC;YACV,WAAW;YACX,YAAY;YACZ,SAAS;YACT,YAAY;YACZ,YAAY;YACZ,QAAQ;SACT,CAAC,CAAC;IACP,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,IAAa,EAAE,EAAE;QAC/B,MAAM,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,+BAA+B,EAAE,CAAC,CAAC;QACrE,MAAM,aAAa,CAAC,IAAuB,CAAC,CAAC;IAC/C,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { deleteCommand } from \"../../mtls-certificates/delete/handler.js\";\nimport { DeleteArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Deletes an mTLS certificate by ID\",\n command: \"delete\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 mtls-certificates delete --cert-id <id> [options]\")\n .option(\"cert-id\", {\n type: \"string\",\n describe: \"The ID of the certificate to delete\",\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"cert-id\"])\n .example([\n [\n \"$0 mtls-certificates delete --cert-id cert_abc123\",\n \"Delete an mTLS certificate\",\n ],\n [\n \"$0 mtls-certificates delete --cert-id cert_abc123 --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate delete\" });\n await deleteCommand(argv as DeleteArguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/describe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/describe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAwCf,OAAO;;AA3C/B,wBA+CE"}
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "describe",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 mtls-certificates describe --cert-id <id> [options]")
|
|
14
15
|
.option("cert-id", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The ID of the certificate to describe",
|
|
@@ -29,6 +30,16 @@ export default {
|
|
|
29
30
|
describe: "The project name",
|
|
30
31
|
})
|
|
31
32
|
.demandOption(["cert-id"])
|
|
33
|
+
.example([
|
|
34
|
+
[
|
|
35
|
+
"$0 mtls-certificates describe --cert-id cert_abc123",
|
|
36
|
+
"Get details about an mTLS certificate",
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"$0 mtls-certificates describe --cert-id cert_abc123 --account my-account --project my-project",
|
|
40
|
+
"Explicitly specify the account and project",
|
|
41
|
+
],
|
|
42
|
+
])
|
|
32
43
|
.middleware([
|
|
33
44
|
setBlocking,
|
|
34
45
|
authenticate,
|
|
@@ -39,7 +50,7 @@ export default {
|
|
|
39
50
|
]);
|
|
40
51
|
},
|
|
41
52
|
handler: async (argv) => {
|
|
42
|
-
await captureEvent({ argv, event: "zuplo mtls-
|
|
53
|
+
await captureEvent({ argv, event: "zuplo mtls-certificate describe" });
|
|
43
54
|
await describe(argv);
|
|
44
55
|
},
|
|
45
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/describe.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC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AAC;QACvE,MAAM,QAAQ,CAAC,IAAyB,CAAC,CAAC;IAC5C,CAAC;CACF,CAAC","sourcesContent":["import { Argv } from \"yargs\";\nimport { captureEvent } from \"../../common/analytics/lib.js\";\nimport { authenticate } from \"../../common/middleware/authentication.js\";\nimport { configure } from \"../../common/middleware/user-configuration.js\";\nimport { identify } from \"../../common/middleware/user-identification.js\";\nimport setBlocking from \"../../common/output.js\";\nimport { describe } from \"../../mtls-certificates/describe/handler.js\";\nimport { DescribeArguments } from \"../../mtls-certificates/models.js\";\nimport { fetchAccount } from \"../../common/middleware/get-account-param.js\";\nimport { fetchProject } from \"../../common/middleware/get-project-param.js\";\n\nexport default {\n desc: \"Describes an mTLS certificate\",\n command: \"describe\",\n builder: (yargs: Argv): Argv<unknown> => {\n return yargs\n .usage(\"$0 mtls-certificates describe --cert-id <id> [options]\")\n .option(\"cert-id\", {\n type: \"string\",\n describe: \"The ID of the certificate to describe\",\n })\n .option(\"api-key\", {\n type: \"string\",\n describe: \"The API Key from Zuplo\",\n envVar: \"API_KEY\",\n })\n .option(\"account\", {\n type: \"string\",\n describe: \"The account name\",\n })\n .option(\"project\", {\n type: \"string\",\n describe: \"The project name\",\n })\n .demandOption([\"cert-id\"])\n .example([\n [\n \"$0 mtls-certificates describe --cert-id cert_abc123\",\n \"Get details about an mTLS certificate\",\n ],\n [\n \"$0 mtls-certificates describe --cert-id cert_abc123 --account my-account --project my-project\",\n \"Explicitly specify the account and project\",\n ],\n ])\n .middleware([\n setBlocking,\n authenticate,\n configure,\n fetchAccount,\n fetchProject,\n identify,\n ]);\n },\n handler: async (argv: unknown) => {\n await captureEvent({ argv, event: \"zuplo mtls-certificate describe\" });\n await describe(argv as DescribeArguments);\n },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,QAAQ,GAAkB;IAC9B,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,QAAQ,GAAkB;IAC9B,QAAQ,EAAE,2BAA2B;IACrC,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;QACjB,OAAO,KAAK;aACT,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,IAAI,CAAC;aACb,OAAO,CAAC,QAAQ,CAAC;aACjB,OAAO,CAAC,MAAM,CAAC;aACf,OAAO,CAAC,aAAa,CAAC;aACtB,IAAI,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { CommandModule } from \"yargs\";\nimport { groupHandler } from \"../../common/handler.js\";\nimport create from \"./create.js\";\nimport deleteCommand from \"./delete.js\";\nimport describe from \"./describe.js\";\nimport list from \"./list.js\";\nimport update from \"./update.js\";\n\nconst commands: CommandModule = {\n describe: \"mTLS certificate commands\",\n command: \"mtls-certificate\",\n builder: (yargs) => {\n return yargs\n .command(create)\n .command(list)\n .command(describe)\n .command(update)\n .command(deleteCommand)\n .help();\n },\n handler: groupHandler,\n};\n\nexport default commands;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/cmds/mtls-certificates/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;;;;qBAcV,IAAI,KAAG,IAAI,CAAC,OAAO,CAAC;oBAmCf,OAAO;;AAtC/B,wBA0CE"}
|
|
@@ -11,6 +11,7 @@ export default {
|
|
|
11
11
|
command: "list",
|
|
12
12
|
builder: (yargs) => {
|
|
13
13
|
return yargs
|
|
14
|
+
.usage("$0 mtls-certificates list [options]")
|
|
14
15
|
.option("api-key", {
|
|
15
16
|
type: "string",
|
|
16
17
|
describe: "The API Key from Zuplo",
|
|
@@ -24,6 +25,16 @@ export default {
|
|
|
24
25
|
type: "string",
|
|
25
26
|
describe: "The project name",
|
|
26
27
|
})
|
|
28
|
+
.example([
|
|
29
|
+
[
|
|
30
|
+
"$0 mtls-certificates list",
|
|
31
|
+
"List all mTLS certificates for your project",
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"$0 mtls-certificates list --account my-account --project my-project",
|
|
35
|
+
"Explicitly specify the account and project",
|
|
36
|
+
],
|
|
37
|
+
])
|
|
27
38
|
.middleware([
|
|
28
39
|
setBlocking,
|
|
29
40
|
authenticate,
|
|
@@ -34,7 +45,7 @@ export default {
|
|
|
34
45
|
]);
|
|
35
46
|
},
|
|
36
47
|
handler: async (argv) => {
|
|
37
|
-
await captureEvent({ argv, event: "zuplo mtls-
|
|
48
|
+
await captureEvent({ argv, event: "zuplo mtls-certificate list" });
|
|
38
49
|
await list(argv);
|
|
39
50
|
},
|
|
40
51
|
};
|