@scalar/cli 2.13.0 → 2.13.1
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/chunks/{action-YQSSXJAX.js → action-2BZ3AFBR.js} +4 -4
- package/chunks/{action-ZL2CXRJR.js → action-3DBOUHKS.js} +6 -6
- package/chunks/{action-AWHBOHGW.js → action-3R3MVTP3.js} +15 -15
- package/chunks/{action-6RQDLMOM.js → action-5HWPNWVU.js} +16 -16
- package/chunks/{action-OD4GNHM3.js → action-5JTBIUPZ.js} +18 -18
- package/chunks/{action-OZWRV54F.js → action-5QDBZTBF.js} +4 -4
- package/chunks/{action-S7PMEFCE.js → action-7HHTD65O.js} +5 -5
- package/chunks/{action-4EJA6UEB.js → action-CXQ3HLVC.js} +14 -14
- package/chunks/{action-YFTRHKOK.js → action-EGF7LXVA.js} +11 -11
- package/chunks/{action-5MJTAO5X.js → action-F5LSDVJA.js} +11 -11
- package/chunks/{action-VXEJNBNR.js → action-FR6UPGZP.js} +4 -4
- package/chunks/{action-FZNFBX6U.js → action-FZZ2VLNA.js} +4 -4
- package/chunks/{action-W24B4YT5.js → action-GIKW67JB.js} +12 -12
- package/chunks/{action-Y4YLWZHL.js → action-GLC54N3F.js} +10 -10
- package/chunks/{action-YEAOKB6V.js → action-GRAMP3QD.js} +8 -8
- package/chunks/{action-QZV6IPK4.js → action-IUG6MPST.js} +4 -4
- package/chunks/{action-NN7QF6MI.js → action-JCBTINNL.js} +4 -4
- package/chunks/{action-GNYNOFDK.js → action-JEI24ZNE.js} +3 -3
- package/chunks/{action-WUWWJGRJ.js → action-JFNK5UCV.js} +4 -4
- package/chunks/{action-UAGYB4ZS.js → action-JRPGHJGA.js} +11 -11
- package/chunks/{action-SZ6SG3RB.js → action-KRXJWRCE.js} +14 -14
- package/chunks/{action-F6JSCBEU.js → action-PBJFNJMY.js} +5 -5
- package/chunks/{action-ENN7KFBZ.js → action-PDOW5JS2.js} +7 -7
- package/chunks/{action-JSYHIEYP.js → action-RYLO75IN.js} +10 -10
- package/chunks/{action-UVAYACFA.js → action-VEXFHEQR.js} +4 -4
- package/chunks/{action-LVYFHK4D.js → action-W3AGGZ42.js} +4 -4
- package/chunks/{action-KTY5ICV5.js → action-W5VD63XO.js} +9 -9
- package/chunks/{action-ESVI46KE.js → action-WEDLKGDY.js} +4 -4
- package/chunks/{action-U3MQZ5ZQ.js → action-WI6UW2AL.js} +11 -11
- package/chunks/{action-6FPGU5SY.js → action-WQPMJZXL.js} +11 -11
- package/chunks/{action-WQICTF7K.js → action-WY4GOD2Y.js} +8 -8
- package/chunks/{action-EVNUUWR5.js → action-XXIRB2F6.js} +15 -15
- package/chunks/{actions-GHHWF4Q2.js → actions-I4HS6ASR.js} +11 -11
- package/chunks/{agent-XAHNA4MB.js → agent-E6PYTXAU.js} +3 -3
- package/chunks/{asyncapi-TICSLZRM.js → asyncapi-VQ7CCUCY.js} +7 -7
- package/chunks/{build.action-AURC6QZ6.js → build.action-LIAREWUF.js} +13 -13
- package/chunks/{chunk-TVPVXL73.js → chunk-6VAEDMCP.js} +7 -7
- package/chunks/{chunk-TKT5UW3G.js → chunk-6YDIOXF7.js} +2 -2
- package/chunks/{chunk-WKW5W2ZP.js → chunk-DWN6JOF2.js} +1 -1
- package/chunks/{chunk-EXJUFF6G.js → chunk-FXELV3AW.js} +8 -3
- package/chunks/{chunk-NRHHB3YY.js → chunk-GARUDDWI.js} +1 -1
- package/chunks/{chunk-OVKTA5CX.js → chunk-HZ4UKLOE.js} +2 -2
- package/chunks/{chunk-2AK5O3NQ.js → chunk-IDWF5L45.js} +28 -28
- package/chunks/{chunk-TYNF7ROW.js → chunk-JHJDLZSM.js} +1 -1
- package/chunks/{chunk-TI4NDKQC.js → chunk-KTI65ZVY.js} +5 -5
- package/chunks/{chunk-7K6I2GUG.js → chunk-LUR7BA3W.js} +1 -1
- package/chunks/{chunk-AOZQPCWI.js → chunk-M4QTWCJ7.js} +2 -0
- package/chunks/{chunk-7S34K2P3.js → chunk-NOD4CBF7.js} +1 -1
- package/chunks/{chunk-KPLWZIOV.js → chunk-P4EPNS46.js} +3 -3
- package/chunks/{chunk-RAU5KE6F.js → chunk-PWFA23M2.js} +1 -1
- package/chunks/{chunk-VNF2GRZA.js → chunk-QRYMQPFT.js} +1 -1
- package/chunks/{chunk-DDDYR2HF.js → chunk-QS2T7JAK.js} +1 -1
- package/chunks/{chunk-M2MMGSLK.js → chunk-QUUBUPAW.js} +3 -3
- package/chunks/{chunk-CSJIKXUD.js → chunk-R3NDJICA.js} +1 -1
- package/chunks/{chunk-Y2OQOAY7.js → chunk-RQNLEGMQ.js} +1 -1
- package/chunks/{chunk-PVDORWEM.js → chunk-RZDLPTXV.js} +2 -2
- package/chunks/{chunk-WDFZ7WYJ.js → chunk-SIPBGEVT.js} +1 -1
- package/chunks/{chunk-62OOT7FY.js → chunk-SNSJW2JT.js} +2 -2
- package/chunks/{chunk-7O5H2SQP.js → chunk-UNV7BZD3.js} +2 -2
- package/chunks/{chunk-IRA5BW2J.js → chunk-X62ZTOQF.js} +31 -4
- package/chunks/{chunk-B3XOSR6W.js → chunk-XFBCZL7J.js} +2 -2
- package/chunks/{create.action-O3HN6GV2.js → create.action-PZMCTYGS.js} +13 -13
- package/chunks/{delete.action-2L2RWLPI.js → delete.action-J57JIFG3.js} +13 -13
- package/chunks/{delete.action-KEBI2QCS.js → delete.action-VDSTPSWG.js} +13 -13
- package/chunks/{get.action-WDMTCZZR.js → get.action-KUP32QJT.js} +12 -12
- package/chunks/{get.action-BUNTDW54.js → get.action-ZOSML6XG.js} +8 -8
- package/chunks/{list.action-NSK7OBRH.js → list.action-Q5MPDR42.js} +14 -14
- package/chunks/{list.action-JNSEJVHX.js → list.action-VYENIC5L.js} +12 -12
- package/chunks/{publish.action-ZRZQUL7S.js → publish.action-MBAZHQ2J.js} +18 -18
- package/chunks/{update.action-7TA46AE6.js → update.action-BWMCXWQ5.js} +13 -13
- package/chunks/{update.action-O2R5ODGG.js → update.action-IEXVMUKG.js} +13 -13
- package/index.js +55 -55
- package/package.json +1 -1
- package/skills/scalar-cli/SKILL.md +1 -1
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
DownloadIsolateCommand
|
|
5
|
-
} from "./chunks/chunk-
|
|
5
|
+
} from "./chunks/chunk-PWFA23M2.js";
|
|
6
6
|
import {
|
|
7
7
|
buildCliContext,
|
|
8
8
|
runnableCommands
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
BundleCommand,
|
|
18
18
|
parseFetchLimit,
|
|
19
19
|
parsePort
|
|
20
|
-
} from "./chunks/chunk-
|
|
20
|
+
} from "./chunks/chunk-QRYMQPFT.js";
|
|
21
21
|
import {
|
|
22
22
|
completeFiles
|
|
23
23
|
} from "./chunks/chunk-DFOZG7ZV.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunks/chunk-NAC63XJF.js";
|
|
31
31
|
import {
|
|
32
32
|
SdkLanguage
|
|
33
|
-
} from "./chunks/chunk-
|
|
33
|
+
} from "./chunks/chunk-RQNLEGMQ.js";
|
|
34
34
|
import {
|
|
35
35
|
checkNodeVersion
|
|
36
36
|
} from "./chunks/chunk-VUXPDHTQ.js";
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
getMetadata,
|
|
39
39
|
logout,
|
|
40
40
|
setMetadata
|
|
41
|
-
} from "./chunks/chunk-
|
|
42
|
-
import "./chunks/chunk-
|
|
41
|
+
} from "./chunks/chunk-QS2T7JAK.js";
|
|
42
|
+
import "./chunks/chunk-R3NDJICA.js";
|
|
43
43
|
import {
|
|
44
44
|
bin,
|
|
45
45
|
name,
|
|
46
46
|
version
|
|
47
|
-
} from "./chunks/chunk-
|
|
47
|
+
} from "./chunks/chunk-GARUDDWI.js";
|
|
48
48
|
import "./chunks/chunk-F3TQHNSQ.js";
|
|
49
49
|
import "./chunks/chunk-VRZSDUZK.js";
|
|
50
50
|
import {
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
err,
|
|
64
64
|
ok
|
|
65
65
|
} from "./chunks/chunk-5ENKYZA4.js";
|
|
66
|
-
import "./chunks/chunk-
|
|
66
|
+
import "./chunks/chunk-M4QTWCJ7.js";
|
|
67
67
|
import "./chunks/chunk-Q26DFKTY.js";
|
|
68
68
|
import {
|
|
69
69
|
external_exports
|
|
@@ -85,7 +85,7 @@ var DeleteSchemaCommand = () => {
|
|
|
85
85
|
cmd3.option("-s, --slug <slug>", "Schema slug");
|
|
86
86
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
87
87
|
cmd3.action(async (...args) => {
|
|
88
|
-
const { deleteAction } = await import("./chunks/delete.action-
|
|
88
|
+
const { deleteAction } = await import("./chunks/delete.action-VDSTPSWG.js");
|
|
89
89
|
return deleteAction(...args);
|
|
90
90
|
});
|
|
91
91
|
return cmd3;
|
|
@@ -105,7 +105,7 @@ var GetSchemaCommand = () => {
|
|
|
105
105
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
106
106
|
completeFiles(cmd3, [], ["--output"]);
|
|
107
107
|
cmd3.action(async (...args) => {
|
|
108
|
-
const { getAction } = await import("./chunks/get.action-
|
|
108
|
+
const { getAction } = await import("./chunks/get.action-ZOSML6XG.js");
|
|
109
109
|
return getAction(...args);
|
|
110
110
|
});
|
|
111
111
|
return cmd3;
|
|
@@ -119,7 +119,7 @@ var ListSchemaCommand = () => {
|
|
|
119
119
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
120
120
|
cmd3.option("--json", "Output schema metadata as JSON");
|
|
121
121
|
cmd3.action(async (...args) => {
|
|
122
|
-
const { listAction } = await import("./chunks/list.action-
|
|
122
|
+
const { listAction } = await import("./chunks/list.action-Q5MPDR42.js");
|
|
123
123
|
return listAction(...args);
|
|
124
124
|
});
|
|
125
125
|
return cmd3;
|
|
@@ -158,7 +158,7 @@ var PublishSchemaCommand = () => {
|
|
|
158
158
|
);
|
|
159
159
|
completeFiles(cmd3, ["file"], []);
|
|
160
160
|
cmd3.action(async (...args) => {
|
|
161
|
-
const { publishAction } = await import("./chunks/publish.action-
|
|
161
|
+
const { publishAction } = await import("./chunks/publish.action-MBAZHQ2J.js");
|
|
162
162
|
return publishAction(...args);
|
|
163
163
|
});
|
|
164
164
|
return cmd3;
|
|
@@ -193,7 +193,7 @@ var UpdateSchemaCommand = () => {
|
|
|
193
193
|
"\nOmitting visibility options leaves access unchanged.\nExample: scalar schema update --namespace acme --slug my-schema --public"
|
|
194
194
|
);
|
|
195
195
|
cmd3.action(async (...args) => {
|
|
196
|
-
const { updateAction } = await import("./chunks/update.action-
|
|
196
|
+
const { updateAction } = await import("./chunks/update.action-IEXVMUKG.js");
|
|
197
197
|
return updateAction(...args);
|
|
198
198
|
});
|
|
199
199
|
return cmd3;
|
|
@@ -224,7 +224,7 @@ var BuildSdkCommand = () => {
|
|
|
224
224
|
cmd3.option("-s, --slug <slug>", "SDK slug");
|
|
225
225
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
226
226
|
cmd3.action(async (...args) => {
|
|
227
|
-
const { buildAction } = await import("./chunks/build.action-
|
|
227
|
+
const { buildAction } = await import("./chunks/build.action-LIAREWUF.js");
|
|
228
228
|
return buildAction(...args);
|
|
229
229
|
});
|
|
230
230
|
return cmd3;
|
|
@@ -244,7 +244,7 @@ var CreateSdkCommand = () => {
|
|
|
244
244
|
)
|
|
245
245
|
);
|
|
246
246
|
cmd3.action(async (...args) => {
|
|
247
|
-
const { createAction } = await import("./chunks/create.action-
|
|
247
|
+
const { createAction } = await import("./chunks/create.action-PZMCTYGS.js");
|
|
248
248
|
return createAction(...args);
|
|
249
249
|
});
|
|
250
250
|
return cmd3;
|
|
@@ -259,7 +259,7 @@ var DeleteSdkCommand = () => {
|
|
|
259
259
|
cmd3.option("-s, --slug <slug>", "SDK slug");
|
|
260
260
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
261
261
|
cmd3.action(async (...args) => {
|
|
262
|
-
const { deleteAction } = await import("./chunks/delete.action-
|
|
262
|
+
const { deleteAction } = await import("./chunks/delete.action-J57JIFG3.js");
|
|
263
263
|
return deleteAction(...args);
|
|
264
264
|
});
|
|
265
265
|
return cmd3;
|
|
@@ -281,7 +281,7 @@ var UpdateSdkCommand = () => {
|
|
|
281
281
|
).choices([...PRIVACY_VALUES])
|
|
282
282
|
);
|
|
283
283
|
cmd3.action(async (...args) => {
|
|
284
|
-
const { updateAction } = await import("./chunks/update.action-
|
|
284
|
+
const { updateAction } = await import("./chunks/update.action-BWMCXWQ5.js");
|
|
285
285
|
return updateAction(...args);
|
|
286
286
|
});
|
|
287
287
|
return cmd3;
|
|
@@ -298,7 +298,7 @@ var GetSdkCommand = () => {
|
|
|
298
298
|
cmd3.option("-n, --namespace <namespace>", "Team namespace");
|
|
299
299
|
cmd3.option("--json", "Output structured SDK metadata as JSON");
|
|
300
300
|
cmd3.action(async (...args) => {
|
|
301
|
-
const { getAction } = await import("./chunks/get.action-
|
|
301
|
+
const { getAction } = await import("./chunks/get.action-KUP32QJT.js");
|
|
302
302
|
return getAction(...args);
|
|
303
303
|
});
|
|
304
304
|
return cmd3;
|
|
@@ -312,7 +312,7 @@ var ListSdkCommand = () => {
|
|
|
312
312
|
cmd3.option("--json", "Output structured SDK metadata as JSON");
|
|
313
313
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
314
314
|
cmd3.action(async (...args) => {
|
|
315
|
-
const { listAction } = await import("./chunks/list.action-
|
|
315
|
+
const { listAction } = await import("./chunks/list.action-VYENIC5L.js");
|
|
316
316
|
return listAction(...args);
|
|
317
317
|
});
|
|
318
318
|
return cmd3;
|
|
@@ -341,41 +341,41 @@ function createAccessGroupCommand() {
|
|
|
341
341
|
"Manage access groups and allowed email domains for the current team"
|
|
342
342
|
);
|
|
343
343
|
command.command("list").description("List access groups for the current team").option("--json", "Print the result as JSON").action(async (options) => {
|
|
344
|
-
const { runAction } = await import("./chunks/actions-
|
|
344
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
345
345
|
await runAction({ operation: "list", ...options });
|
|
346
346
|
});
|
|
347
347
|
command.command("create").description("Create an access group (Pro or above)").argument("<slug>", "New access group slug").option("--name <name>", "Display name").option("--domain <domains...>", "Allowed email domains").option("--json", "Print the result as JSON").action(
|
|
348
348
|
async (slug, options) => {
|
|
349
|
-
const { runAction } = await import("./chunks/actions-
|
|
349
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
350
350
|
await runAction({ operation: "create", slug, ...options });
|
|
351
351
|
}
|
|
352
352
|
);
|
|
353
353
|
command.command("get").description("Get an access group and its allowlists").argument("<slug>", "Access group slug").option("--json", "Print the result as JSON").action(async (slug, options) => {
|
|
354
|
-
const { runAction } = await import("./chunks/actions-
|
|
354
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
355
355
|
await runAction({ operation: "get", slug, ...options });
|
|
356
356
|
});
|
|
357
357
|
command.command("update").description("Update access group metadata").argument("<slug>", "Current access group slug").option("--name <name>", "New display name").option("--new-slug <slug>", "New access group slug").option("--json", "Print the result as JSON").action(
|
|
358
358
|
async (slug, options) => {
|
|
359
|
-
const { runAction } = await import("./chunks/actions-
|
|
359
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
360
360
|
await runAction({ operation: "update", slug, ...options });
|
|
361
361
|
}
|
|
362
362
|
);
|
|
363
363
|
command.command("delete").description("Delete an access group and remove its project assignments").argument("<slug>", "Access group slug").option("-y, --yes", "Confirm deletion without prompting").option("--json", "Print the result as JSON (requires --yes)").action(
|
|
364
364
|
async (slug, options) => {
|
|
365
|
-
const { runAction } = await import("./chunks/actions-
|
|
365
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
366
366
|
await runAction({ operation: "delete", slug, ...options });
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
369
|
const domain = command.command("domain").description("Manage allowed email domains");
|
|
370
370
|
domain.command("add").description("Add an exact email domain to an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
|
|
371
371
|
async (slug, domain2, options) => {
|
|
372
|
-
const { runAction } = await import("./chunks/actions-
|
|
372
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
373
373
|
await runAction({ operation: "add-domain", slug, domain: domain2, ...options });
|
|
374
374
|
}
|
|
375
375
|
);
|
|
376
376
|
domain.command("remove").description("Remove an exact email domain from an access group").argument("<slug>", "Access group slug").argument("<domain>", "Email domain, such as example.com").option("--json", "Print the result as JSON").action(
|
|
377
377
|
async (slug, domain2, options) => {
|
|
378
|
-
const { runAction } = await import("./chunks/actions-
|
|
378
|
+
const { runAction } = await import("./chunks/actions-I4HS6ASR.js");
|
|
379
379
|
await runAction({
|
|
380
380
|
operation: "remove-domain",
|
|
381
381
|
slug,
|
|
@@ -410,7 +410,7 @@ var LoginCommand = () => {
|
|
|
410
410
|
).hideHelp()
|
|
411
411
|
);
|
|
412
412
|
cmd3.action(async (...args) => {
|
|
413
|
-
const { loginAction } = await import("./chunks/action-
|
|
413
|
+
const { loginAction } = await import("./chunks/action-JEI24ZNE.js");
|
|
414
414
|
return loginAction(...args);
|
|
415
415
|
});
|
|
416
416
|
return cmd3;
|
|
@@ -435,7 +435,7 @@ var WhoAmICommand = () => {
|
|
|
435
435
|
cmd3.description("Show the logged-in user and current team");
|
|
436
436
|
cmd3.option("--json", "Output authentication details as JSON");
|
|
437
437
|
cmd3.action(async (options) => {
|
|
438
|
-
const { whoamiAction } = await import("./chunks/action-
|
|
438
|
+
const { whoamiAction } = await import("./chunks/action-RYLO75IN.js");
|
|
439
439
|
return whoamiAction(options);
|
|
440
440
|
});
|
|
441
441
|
return cmd3;
|
|
@@ -514,7 +514,7 @@ function JoinCommand() {
|
|
|
514
514
|
);
|
|
515
515
|
completeFiles(cmd3, ["files"], ["--output"]);
|
|
516
516
|
cmd3.action(async (...args) => {
|
|
517
|
-
const { joinAction } = await import("./chunks/action-
|
|
517
|
+
const { joinAction } = await import("./chunks/action-5QDBZTBF.js");
|
|
518
518
|
return joinAction(...args);
|
|
519
519
|
});
|
|
520
520
|
return cmd3;
|
|
@@ -538,7 +538,7 @@ function SplitCommand() {
|
|
|
538
538
|
);
|
|
539
539
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
540
540
|
cmd3.action(async (...args) => {
|
|
541
|
-
const { splitAction } = await import("./chunks/action-
|
|
541
|
+
const { splitAction } = await import("./chunks/action-2BZ3AFBR.js");
|
|
542
542
|
return splitAction(...args);
|
|
543
543
|
});
|
|
544
544
|
return cmd3;
|
|
@@ -559,7 +559,7 @@ function FormatCommand() {
|
|
|
559
559
|
);
|
|
560
560
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
561
561
|
cmd3.action(async (...args) => {
|
|
562
|
-
const { formatAction } = await import("./chunks/action-
|
|
562
|
+
const { formatAction } = await import("./chunks/action-FZZ2VLNA.js");
|
|
563
563
|
return formatAction(...args);
|
|
564
564
|
});
|
|
565
565
|
return cmd3;
|
|
@@ -612,7 +612,7 @@ function LintCommand() {
|
|
|
612
612
|
);
|
|
613
613
|
completeFiles(cmd3, ["file|url"], ["--rule", "--output", "--ignore-file"]);
|
|
614
614
|
cmd3.action(async (...args) => {
|
|
615
|
-
const { lintAction } = await import("./chunks/action-
|
|
615
|
+
const { lintAction } = await import("./chunks/action-VEXFHEQR.js");
|
|
616
616
|
return lintAction(...args);
|
|
617
617
|
});
|
|
618
618
|
return cmd3;
|
|
@@ -627,7 +627,7 @@ function MarkdownCommand() {
|
|
|
627
627
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
628
628
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
629
629
|
cmd3.action(async (...args) => {
|
|
630
|
-
const { markdownAction } = await import("./chunks/action-
|
|
630
|
+
const { markdownAction } = await import("./chunks/action-JFNK5UCV.js");
|
|
631
631
|
return markdownAction(...args);
|
|
632
632
|
});
|
|
633
633
|
return cmd3;
|
|
@@ -645,7 +645,7 @@ function MockCommand() {
|
|
|
645
645
|
cmd3.option("-p, --port <port>", "HTTP port for the Mock Server", parsePort);
|
|
646
646
|
completeFiles(cmd3, ["file|url"], []);
|
|
647
647
|
cmd3.action(async (...args) => {
|
|
648
|
-
const { mockAction } = await import("./chunks/action-
|
|
648
|
+
const { mockAction } = await import("./chunks/action-WY4GOD2Y.js");
|
|
649
649
|
await mockAction(...args);
|
|
650
650
|
});
|
|
651
651
|
return cmd3;
|
|
@@ -664,7 +664,7 @@ function ConvertCommand() {
|
|
|
664
664
|
);
|
|
665
665
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
666
666
|
cmd3.action(async (...args) => {
|
|
667
|
-
const { convertAction } = await import("./chunks/action-
|
|
667
|
+
const { convertAction } = await import("./chunks/action-W3AGGZ42.js");
|
|
668
668
|
return convertAction(...args);
|
|
669
669
|
});
|
|
670
670
|
return cmd3;
|
|
@@ -690,7 +690,7 @@ function ServeCommand() {
|
|
|
690
690
|
);
|
|
691
691
|
completeFiles(cmd3, ["file|url"], ["--config"]);
|
|
692
692
|
cmd3.action(async (...args) => {
|
|
693
|
-
const { serveAction } = await import("./chunks/action-
|
|
693
|
+
const { serveAction } = await import("./chunks/action-PDOW5JS2.js");
|
|
694
694
|
await serveAction(...args);
|
|
695
695
|
});
|
|
696
696
|
return cmd3;
|
|
@@ -710,7 +710,7 @@ function ShareCommand() {
|
|
|
710
710
|
);
|
|
711
711
|
completeFiles(cmd3, ["file"], []);
|
|
712
712
|
cmd3.action(async (...args) => {
|
|
713
|
-
const { shareAction } = await import("./chunks/action-
|
|
713
|
+
const { shareAction } = await import("./chunks/action-3DBOUHKS.js");
|
|
714
714
|
return shareAction(...args);
|
|
715
715
|
});
|
|
716
716
|
return cmd3;
|
|
@@ -730,7 +730,7 @@ function UpgradeCommand() {
|
|
|
730
730
|
);
|
|
731
731
|
completeFiles(cmd3, ["file|url"], ["--output"]);
|
|
732
732
|
cmd3.action(async (...args) => {
|
|
733
|
-
const { upgradeAction } = await import("./chunks/action-
|
|
733
|
+
const { upgradeAction } = await import("./chunks/action-JCBTINNL.js");
|
|
734
734
|
return upgradeAction(...args);
|
|
735
735
|
});
|
|
736
736
|
return cmd3;
|
|
@@ -744,7 +744,7 @@ function ValidateCommand() {
|
|
|
744
744
|
cmd3.argument("[file|url]", "File or URL to validate");
|
|
745
745
|
completeFiles(cmd3, ["file|url"], []);
|
|
746
746
|
cmd3.action(async (...args) => {
|
|
747
|
-
const { validateAction } = await import("./chunks/action-
|
|
747
|
+
const { validateAction } = await import("./chunks/action-FR6UPGZP.js");
|
|
748
748
|
return validateAction(...args);
|
|
749
749
|
});
|
|
750
750
|
return cmd3;
|
|
@@ -812,7 +812,7 @@ var PreviewCommand = () => {
|
|
|
812
812
|
cmd3.option("-N, --no-open", "Do not open the browser automatically", true);
|
|
813
813
|
completeFiles(cmd3, ["config"], []);
|
|
814
814
|
cmd3.action(async (...args) => {
|
|
815
|
-
const { previewAction } = await import("./chunks/action-
|
|
815
|
+
const { previewAction } = await import("./chunks/action-7HHTD65O.js");
|
|
816
816
|
return previewAction(...args);
|
|
817
817
|
});
|
|
818
818
|
return cmd3;
|
|
@@ -844,7 +844,7 @@ var CreateCommand = () => {
|
|
|
844
844
|
cmd3.option("-n, --name <name>", "Project name");
|
|
845
845
|
cmd3.option("-s, --slug <slug>", "Project slug");
|
|
846
846
|
cmd3.action(async (...args) => {
|
|
847
|
-
const { createAction } = await import("./chunks/action-
|
|
847
|
+
const { createAction } = await import("./chunks/action-F5LSDVJA.js");
|
|
848
848
|
return createAction(...args);
|
|
849
849
|
});
|
|
850
850
|
return cmd3;
|
|
@@ -862,7 +862,7 @@ var GetCommand = () => new Command37("get").description(
|
|
|
862
862
|
"Maximum status wait in seconds (default: 30, or 600 with --wait)"
|
|
863
863
|
).action(
|
|
864
864
|
async (buildId, options) => {
|
|
865
|
-
const { getAction } = await import("./chunks/action-
|
|
865
|
+
const { getAction } = await import("./chunks/action-W5VD63XO.js");
|
|
866
866
|
await getAction(buildId, options);
|
|
867
867
|
}
|
|
868
868
|
);
|
|
@@ -875,7 +875,7 @@ var ListCommand = () => {
|
|
|
875
875
|
cmd3.description("List production deployments for a project");
|
|
876
876
|
cmd3.option("-s, --slug [slug]", "Project slug from scalar project list");
|
|
877
877
|
cmd3.action(async (...args) => {
|
|
878
|
-
const { listAction } = await import("./chunks/action-
|
|
878
|
+
const { listAction } = await import("./chunks/action-XXIRB2F6.js");
|
|
879
879
|
return listAction(...args);
|
|
880
880
|
});
|
|
881
881
|
return cmd3;
|
|
@@ -896,7 +896,7 @@ function GetCommand2() {
|
|
|
896
896
|
const command = new Command40("get").description("Show project details for the current team").argument("<slug>", "Project slug from scalar project list").option("--json", "Print project details as JSON");
|
|
897
897
|
command.action(
|
|
898
898
|
async (slug, options) => {
|
|
899
|
-
const { getAction } = await import("./chunks/action-
|
|
899
|
+
const { getAction } = await import("./chunks/action-WI6UW2AL.js");
|
|
900
900
|
await getAction(slug, options);
|
|
901
901
|
}
|
|
902
902
|
);
|
|
@@ -915,7 +915,7 @@ var InitCommand = () => {
|
|
|
915
915
|
);
|
|
916
916
|
cmd3.option("--force", "Overwrite existing configuration");
|
|
917
917
|
cmd3.action(async (...args) => {
|
|
918
|
-
const { initAction } = await import("./chunks/action-
|
|
918
|
+
const { initAction } = await import("./chunks/action-EGF7LXVA.js");
|
|
919
919
|
return initAction(...args);
|
|
920
920
|
});
|
|
921
921
|
return cmd3;
|
|
@@ -926,7 +926,7 @@ import { Command as Command42 } from "commander";
|
|
|
926
926
|
function ListCommand2() {
|
|
927
927
|
const command = new Command42("list").description("List projects and their slugs for the current team").option("--json", "Print project details as JSON");
|
|
928
928
|
command.action(async (options) => {
|
|
929
|
-
const { listAction } = await import("./chunks/action-
|
|
929
|
+
const { listAction } = await import("./chunks/action-KRXJWRCE.js");
|
|
930
930
|
await listAction(options);
|
|
931
931
|
});
|
|
932
932
|
return command;
|
|
@@ -961,7 +961,7 @@ var PublishCommand = () => {
|
|
|
961
961
|
);
|
|
962
962
|
completeFiles(cmd3, [], ["--config"]);
|
|
963
963
|
cmd3.action(async (...args) => {
|
|
964
|
-
const { publishAction } = await import("./chunks/action-
|
|
964
|
+
const { publishAction } = await import("./chunks/action-3R3MVTP3.js");
|
|
965
965
|
return publishAction(...args);
|
|
966
966
|
});
|
|
967
967
|
return cmd3;
|
|
@@ -982,7 +982,7 @@ var RollbackCommand = () => {
|
|
|
982
982
|
);
|
|
983
983
|
cmd3.option("-y, --yes", "Skip the confirmation prompt");
|
|
984
984
|
cmd3.action(async (...args) => {
|
|
985
|
-
const { rollbackAction } = await import("./chunks/action-
|
|
985
|
+
const { rollbackAction } = await import("./chunks/action-5HWPNWVU.js");
|
|
986
986
|
return rollbackAction(...args);
|
|
987
987
|
});
|
|
988
988
|
return cmd3;
|
|
@@ -1165,7 +1165,7 @@ var PublishCommand2 = () => {
|
|
|
1165
1165
|
);
|
|
1166
1166
|
completeFiles(cmd3, ["file"], []);
|
|
1167
1167
|
cmd3.action(async (...args) => {
|
|
1168
|
-
const { publishAction } = await import("./chunks/action-
|
|
1168
|
+
const { publishAction } = await import("./chunks/action-5JTBIUPZ.js");
|
|
1169
1169
|
return publishAction(...args);
|
|
1170
1170
|
});
|
|
1171
1171
|
return cmd3;
|
|
@@ -1180,7 +1180,7 @@ var DeleteCommand = () => {
|
|
|
1180
1180
|
cmd3.argument("[namespace]", "Team namespace");
|
|
1181
1181
|
cmd3.argument("[slug]", "API description slug");
|
|
1182
1182
|
cmd3.action(async (...args) => {
|
|
1183
|
-
const { deleteAction } = await import("./chunks/action-
|
|
1183
|
+
const { deleteAction } = await import("./chunks/action-JRPGHJGA.js");
|
|
1184
1184
|
return deleteAction(...args);
|
|
1185
1185
|
});
|
|
1186
1186
|
return cmd3;
|
|
@@ -1205,7 +1205,7 @@ var GetCommand3 = () => {
|
|
|
1205
1205
|
cmd3.option("-o, --output <file>", "Output file (defaults to stdout)");
|
|
1206
1206
|
completeFiles(cmd3, [], ["--output"]);
|
|
1207
1207
|
cmd3.action(async (...args) => {
|
|
1208
|
-
const { getAction } = await import("./chunks/action-
|
|
1208
|
+
const { getAction } = await import("./chunks/action-GRAMP3QD.js");
|
|
1209
1209
|
return getAction(...args);
|
|
1210
1210
|
});
|
|
1211
1211
|
return cmd3;
|
|
@@ -1219,7 +1219,7 @@ var ListCommand3 = () => {
|
|
|
1219
1219
|
cmd3.option("--namespace <namespace>", "Team namespace");
|
|
1220
1220
|
cmd3.option("--json", "Output Scalar Registry API metadata as JSON");
|
|
1221
1221
|
cmd3.action(async (...args) => {
|
|
1222
|
-
const { listAction } = await import("./chunks/action-
|
|
1222
|
+
const { listAction } = await import("./chunks/action-CXQ3HLVC.js");
|
|
1223
1223
|
return listAction(...args);
|
|
1224
1224
|
});
|
|
1225
1225
|
return cmd3;
|
|
@@ -1248,7 +1248,7 @@ var UpdateCommand = () => {
|
|
|
1248
1248
|
"\nOmitting visibility options leaves access unchanged.\nExample: scalar registry update acme my-api --private"
|
|
1249
1249
|
);
|
|
1250
1250
|
cmd3.action(async (...args) => {
|
|
1251
|
-
const { updateAction } = await import("./chunks/action-
|
|
1251
|
+
const { updateAction } = await import("./chunks/action-WQPMJZXL.js");
|
|
1252
1252
|
return updateAction(...args);
|
|
1253
1253
|
});
|
|
1254
1254
|
return cmd3;
|
|
@@ -1277,7 +1277,7 @@ var GetCommand4 = () => {
|
|
|
1277
1277
|
cmd3.description("Show the current team and its namespaces");
|
|
1278
1278
|
cmd3.option("--json", "Output the current team as JSON");
|
|
1279
1279
|
cmd3.action(async (...args) => {
|
|
1280
|
-
const { getAction } = await import("./chunks/action-
|
|
1280
|
+
const { getAction } = await import("./chunks/action-GLC54N3F.js");
|
|
1281
1281
|
return getAction(...args);
|
|
1282
1282
|
});
|
|
1283
1283
|
return cmd3;
|
|
@@ -1290,7 +1290,7 @@ var ListCommand4 = () => {
|
|
|
1290
1290
|
cmd3.description("List your Scalar teams");
|
|
1291
1291
|
cmd3.option("--json", "Output teams as JSON");
|
|
1292
1292
|
cmd3.action(async (...args) => {
|
|
1293
|
-
const { listAction } = await import("./chunks/action-
|
|
1293
|
+
const { listAction } = await import("./chunks/action-GIKW67JB.js");
|
|
1294
1294
|
return listAction(...args);
|
|
1295
1295
|
});
|
|
1296
1296
|
return cmd3;
|
|
@@ -1304,7 +1304,7 @@ var SetCommand = () => {
|
|
|
1304
1304
|
cmd3.description("Select the current team");
|
|
1305
1305
|
cmd3.option("--team <team>", "Team ID");
|
|
1306
1306
|
cmd3.action(async (...args) => {
|
|
1307
|
-
const { setAction } = await import("./chunks/action-
|
|
1307
|
+
const { setAction } = await import("./chunks/action-IUG6MPST.js");
|
|
1308
1308
|
return setAction(...args);
|
|
1309
1309
|
});
|
|
1310
1310
|
return cmd3;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ description: "Operate the Scalar CLI (`scalar`, or `npx @scalar/cli`) to validat
|
|
|
5
5
|
|
|
6
6
|
# Scalar CLI
|
|
7
7
|
|
|
8
|
-
Validate, lint, bundle, mock, and preview OpenAPI and AsyncAPI descriptions, and publish them to Scalar (`@scalar/cli` 2.13.
|
|
8
|
+
Validate, lint, bundle, mock, and preview OpenAPI and AsyncAPI descriptions, and publish them to Scalar (`@scalar/cli` 2.13.1).
|
|
9
9
|
|
|
10
10
|
## Operating notes
|
|
11
11
|
|