@ucdjs/cli 0.3.0 → 0.3.1-beta.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.
@@ -1,19 +0,0 @@
1
- import { t as printHelp } from "./cli-utils-dAbyq59_.js";
2
- import { t as SHARED_FLAGS } from "./_shared-DlzCE5mE.js";
3
-
4
- //#region src/cmd/store/repair.ts
5
- async function runRepairStore({ flags }) {
6
- if (flags?.help || flags?.h) {
7
- printHelp({
8
- headline: "Repair an UCD Store",
9
- commandName: "ucd store repair",
10
- usage: "[versions...] [...flags]",
11
- tables: { Flags: [...SHARED_FLAGS, ["--help (-h)", "See all available flags."]] }
12
- });
13
- return;
14
- }
15
- const { storeDir, dryRun: _dryRun, force: _force, remote, baseUrl, include: patterns } = flags;
16
- }
17
-
18
- //#endregion
19
- export { runRepairStore };
@@ -1,63 +0,0 @@
1
- import { t as printHelp } from "./cli-utils-dAbyq59_.js";
2
-
3
- //#region src/cmd/store/root.ts
4
- const CODEGEN_SUBCOMMANDS = [
5
- "init",
6
- "repair",
7
- "clean",
8
- "analyze"
9
- ];
10
- function isValidSubcommand(subcommand) {
11
- return CODEGEN_SUBCOMMANDS.includes(subcommand);
12
- }
13
- async function runStoreRoot(subcommand, { flags }) {
14
- if (!isValidSubcommand(subcommand) || !isValidSubcommand(subcommand) && (flags?.help || flags?.h)) {
15
- printHelp({
16
- commandName: "ucd store",
17
- usage: "[command] [...flags]",
18
- tables: {
19
- Commands: [
20
- ["init", "Initialize an UCD Store."],
21
- ["repair", "Repair an UCD Store."],
22
- ["clean", "Clean an UCD Store."],
23
- ["status", "Show the status of an UCD Store."]
24
- ],
25
- Flags: [["--help (-h)", "See all available flags."]]
26
- }
27
- });
28
- return;
29
- }
30
- if (subcommand === "init") {
31
- const { runInitStore } = await import("./init-D0yQAcdC.js");
32
- await runInitStore({
33
- versions: flags._.slice(2),
34
- flags
35
- });
36
- return;
37
- }
38
- if (subcommand === "clean") {
39
- const { runCleanStore } = await import("./clean-Dm8LIgdA.js");
40
- await runCleanStore({ flags });
41
- return;
42
- }
43
- if (subcommand === "repair") {
44
- const { runRepairStore } = await import("./repair-DHtSzSYe.js");
45
- await runRepairStore({
46
- versions: flags._.slice(2),
47
- flags
48
- });
49
- return;
50
- }
51
- if (subcommand === "analyze") {
52
- const { runAnalyzeStore } = await import("./analyze-C7RthxQg.js");
53
- await runAnalyzeStore({
54
- flags,
55
- versions: flags._.slice(2)
56
- });
57
- return;
58
- }
59
- throw new Error(`Invalid subcommand: ${subcommand}`);
60
- }
61
-
62
- //#endregion
63
- export { runStoreRoot };
File without changes