@vaharoni/devops 1.1.12 → 1.2.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/core/affected.d.ts +9 -0
- package/dist/cli/core/affected.d.ts.map +1 -0
- package/dist/cli/{affected.js → core/affected.js} +4 -6
- package/dist/cli/core/cloudrun.d.ts +9 -0
- package/dist/cli/core/cloudrun.d.ts.map +1 -0
- package/dist/cli/{cloudrun.js → core/cloudrun.js} +3 -5
- package/dist/cli/core/console.d.ts +9 -0
- package/dist/cli/core/console.d.ts.map +1 -0
- package/dist/cli/{console.js → core/console.js} +5 -7
- package/dist/cli/core/constant.d.ts +9 -0
- package/dist/cli/core/constant.d.ts.map +1 -0
- package/dist/cli/{constant.js → core/constant.js} +3 -5
- package/dist/cli/core/env.d.ts +9 -0
- package/dist/cli/core/env.d.ts.map +1 -0
- package/dist/cli/{env.js → core/env.js} +4 -6
- package/dist/cli/core/exec.d.ts +9 -0
- package/dist/cli/core/exec.d.ts.map +1 -0
- package/dist/cli/{exec.js → core/exec.js} +5 -7
- package/dist/cli/core/image.d.ts +9 -0
- package/dist/cli/core/image.d.ts.map +1 -0
- package/dist/cli/{image.js → core/image.js} +6 -8
- package/dist/cli/core/index.d.ts +16 -0
- package/dist/cli/core/index.d.ts.map +1 -0
- package/dist/cli/core/index.js +15 -0
- package/dist/cli/core/init.d.ts +9 -0
- package/dist/cli/core/init.d.ts.map +1 -0
- package/dist/cli/{init.js → core/init.js} +3 -5
- package/dist/cli/core/job.d.ts +9 -0
- package/dist/cli/core/job.d.ts.map +1 -0
- package/dist/cli/{job.js → core/job.js} +7 -9
- package/dist/cli/core/namespace.d.ts +9 -0
- package/dist/cli/core/namespace.d.ts.map +1 -0
- package/dist/cli/{namespace.js → core/namespace.js} +4 -7
- package/dist/cli/core/prep-build.d.ts +10 -0
- package/dist/cli/core/prep-build.d.ts.map +1 -0
- package/dist/cli/{prep-build.js → core/prep-build.js} +6 -8
- package/dist/cli/core/registry.d.ts +9 -0
- package/dist/cli/core/registry.d.ts.map +1 -0
- package/dist/cli/{registry.js → core/registry.js} +5 -7
- package/dist/cli/core/run-many.d.ts +10 -0
- package/dist/cli/core/run-many.d.ts.map +1 -0
- package/dist/cli/{run-many.js → core/run-many.js} +3 -5
- package/dist/cli/core/run.d.ts +9 -0
- package/dist/cli/core/run.d.ts.map +1 -0
- package/dist/cli/{run.js → core/run.js} +6 -8
- package/dist/cli/core/test.d.ts +9 -0
- package/dist/cli/core/test.d.ts.map +1 -0
- package/dist/cli/{test.js → core/test.js} +2 -4
- package/dist/cli/exec.sh +21 -0
- package/dist/cli/extensions/dml.d.ts +9 -0
- package/dist/cli/extensions/dml.d.ts.map +1 -0
- package/dist/cli/{dml.js → extensions/dml.js} +2 -4
- package/dist/cli/extensions/index.d.ts +9 -0
- package/dist/cli/extensions/index.d.ts.map +1 -0
- package/dist/cli/extensions/index.js +8 -0
- package/dist/cli/extensions/internal-curl.d.ts +10 -0
- package/dist/cli/extensions/internal-curl.d.ts.map +1 -0
- package/dist/cli/{internal-curl.js → extensions/internal-curl.js} +3 -5
- package/dist/cli/extensions/jwt.d.ts +9 -0
- package/dist/cli/extensions/jwt.d.ts.map +1 -0
- package/dist/cli/{jwt.js → extensions/jwt.js} +3 -5
- package/dist/cli/extensions/prisma.d.ts +9 -0
- package/dist/cli/extensions/prisma.d.ts.map +1 -0
- package/dist/cli/{prisma.js → extensions/prisma.js} +4 -6
- package/dist/cli/extensions/redis-bitnami.d.ts +11 -0
- package/dist/cli/extensions/redis-bitnami.d.ts.map +1 -0
- package/dist/cli/{redis.js → extensions/redis-bitnami.js} +4 -6
- package/dist/cli/extensions/redis-ha.d.ts +11 -0
- package/dist/cli/extensions/redis-ha.d.ts.map +1 -0
- package/dist/cli/extensions/redis-ha.js +51 -0
- package/dist/cli/extensions/stackgres.d.ts +10 -0
- package/dist/cli/extensions/stackgres.d.ts.map +1 -0
- package/dist/cli/{db.js → extensions/stackgres.js} +3 -5
- package/dist/cli/extensions/template.d.ts +9 -0
- package/dist/cli/extensions/template.d.ts.map +1 -0
- package/dist/cli/{template.js → extensions/template.js} +7 -9
- package/dist/devops.js +84 -62
- package/dist/libs/{k8s-redis.d.ts → k8s-redis-bitnami.d.ts} +1 -1
- package/dist/libs/k8s-redis-bitnami.d.ts.map +1 -0
- package/dist/libs/k8s-redis-ha.d.ts +3 -0
- package/dist/libs/k8s-redis-ha.d.ts.map +1 -0
- package/dist/libs/k8s-redis-ha.js +15 -0
- package/dist/plugins.d.ts +4 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/plugins.js +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/package.json +12 -2
- package/src/cli/{affected.ts → core/affected.ts} +4 -6
- package/src/cli/{cloudrun.ts → core/cloudrun.ts} +3 -5
- package/src/cli/{console.ts → core/console.ts} +5 -7
- package/src/cli/{constant.ts → core/constant.ts} +3 -5
- package/src/cli/{env.ts → core/env.ts} +4 -6
- package/src/cli/{exec.ts → core/exec.ts} +5 -7
- package/src/cli/{image.ts → core/image.ts} +6 -8
- package/src/cli/core/index.ts +15 -0
- package/src/cli/{init.ts → core/init.ts} +4 -6
- package/src/cli/{job.ts → core/job.ts} +7 -9
- package/src/cli/{namespace.ts → core/namespace.ts} +4 -8
- package/src/cli/{prep-build.ts → core/prep-build.ts} +6 -8
- package/src/cli/{registry.ts → core/registry.ts} +5 -7
- package/src/cli/{run-many.ts → core/run-many.ts} +3 -5
- package/src/cli/{run.ts → core/run.ts} +6 -8
- package/src/cli/{test.ts → core/test.ts} +2 -4
- package/src/cli/{dml.ts → extensions/dml.ts} +2 -4
- package/src/cli/extensions/index.ts +8 -0
- package/src/cli/{internal-curl.ts → extensions/internal-curl.ts} +3 -5
- package/src/cli/{jwt.ts → extensions/jwt.ts} +3 -5
- package/src/cli/{prisma.ts → extensions/prisma.ts} +4 -6
- package/src/cli/{redis.ts → extensions/redis-bitnami.ts} +4 -6
- package/src/cli/extensions/redis-ha.ts +57 -0
- package/src/cli/{db.ts → extensions/stackgres.ts} +3 -5
- package/src/cli/{template.ts → extensions/template.ts} +7 -9
- package/src/devops.ts +100 -64
- package/src/libs/k8s-redis-ha.ts +16 -0
- package/src/plugins.ts +8 -0
- package/src/types/index.ts +1 -0
- package/dist/cli/affected.d.ts +0 -11
- package/dist/cli/affected.d.ts.map +0 -1
- package/dist/cli/cloudrun.d.ts +0 -11
- package/dist/cli/cloudrun.d.ts.map +0 -1
- package/dist/cli/console.d.ts +0 -11
- package/dist/cli/console.d.ts.map +0 -1
- package/dist/cli/constant.d.ts +0 -11
- package/dist/cli/constant.d.ts.map +0 -1
- package/dist/cli/db.d.ts +0 -11
- package/dist/cli/db.d.ts.map +0 -1
- package/dist/cli/dml.d.ts +0 -11
- package/dist/cli/dml.d.ts.map +0 -1
- package/dist/cli/env.d.ts +0 -11
- package/dist/cli/env.d.ts.map +0 -1
- package/dist/cli/exec.d.ts +0 -11
- package/dist/cli/exec.d.ts.map +0 -1
- package/dist/cli/image.d.ts +0 -11
- package/dist/cli/image.d.ts.map +0 -1
- package/dist/cli/init.d.ts +0 -11
- package/dist/cli/init.d.ts.map +0 -1
- package/dist/cli/internal-curl.d.ts +0 -11
- package/dist/cli/internal-curl.d.ts.map +0 -1
- package/dist/cli/job.d.ts +0 -11
- package/dist/cli/job.d.ts.map +0 -1
- package/dist/cli/jwt.d.ts +0 -11
- package/dist/cli/jwt.d.ts.map +0 -1
- package/dist/cli/namespace.d.ts +0 -11
- package/dist/cli/namespace.d.ts.map +0 -1
- package/dist/cli/prep-build.d.ts +0 -11
- package/dist/cli/prep-build.d.ts.map +0 -1
- package/dist/cli/prisma.d.ts +0 -11
- package/dist/cli/prisma.d.ts.map +0 -1
- package/dist/cli/redis.d.ts +0 -11
- package/dist/cli/redis.d.ts.map +0 -1
- package/dist/cli/registry.d.ts +0 -11
- package/dist/cli/registry.d.ts.map +0 -1
- package/dist/cli/run-many.d.ts +0 -11
- package/dist/cli/run-many.d.ts.map +0 -1
- package/dist/cli/run.d.ts +0 -11
- package/dist/cli/run.d.ts.map +0 -1
- package/dist/cli/template.d.ts +0 -11
- package/dist/cli/template.d.ts.map +0 -1
- package/dist/cli/test.d.ts +0 -11
- package/dist/cli/test.d.ts.map +0 -1
- package/dist/libs/k8s-redis.d.ts.map +0 -1
- /package/dist/libs/{k8s-redis.js → k8s-redis-bitnami.js} +0 -0
- /package/src/libs/{k8s-redis.ts → k8s-redis-bitnami.ts} +0 -0
package/src/devops.ts
CHANGED
|
@@ -1,76 +1,90 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// This file behaves as a façade for various devops scripts
|
|
3
|
+
import { globSync } from "glob";
|
|
3
4
|
import { CLICommandParser, printUsageAndExit } from "./cli/common";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import registry from "./cli/registry";
|
|
10
|
-
import env from "./cli/env";
|
|
11
|
-
import exec from "./cli/exec";
|
|
12
|
-
import prepBuild from "./cli/prep-build";
|
|
13
|
-
import prisma from "./cli/prisma";
|
|
14
|
-
import run from "./cli/run";
|
|
15
|
-
import runMany from "./cli/run-many";
|
|
16
|
-
import test from "./cli/test";
|
|
17
|
-
import init from "./cli/init";
|
|
18
|
-
import redis from "./cli/redis";
|
|
19
|
-
import internalCurl from "./cli/internal-curl";
|
|
20
|
-
import jwt from "./cli/jwt";
|
|
21
|
-
import namespace from "./cli/namespace";
|
|
22
|
-
import image from "./cli/image";
|
|
23
|
-
import template from "./cli/template";
|
|
24
|
-
import job from "./cli/job";
|
|
25
|
-
import cloudrun from "./cli/cloudrun";
|
|
5
|
+
import * as coreImports from "./cli/core";
|
|
6
|
+
import * as extensionImports from "./cli/extensions";
|
|
7
|
+
import { getConst } from "./libs/config";
|
|
8
|
+
import { existsSync, readdirSync } from "fs";
|
|
9
|
+
import path from "path";
|
|
26
10
|
|
|
27
11
|
const [_node, _scriptPath, ...commandArgs] = process.argv;
|
|
28
12
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
init,
|
|
32
|
-
run,
|
|
33
|
-
runMany,
|
|
34
|
-
exec,
|
|
35
|
-
env,
|
|
36
|
-
prisma,
|
|
37
|
-
dml,
|
|
38
|
-
db,
|
|
39
|
-
redis,
|
|
40
|
-
console,
|
|
41
|
-
test,
|
|
42
|
-
//= Infra
|
|
43
|
-
namespace,
|
|
44
|
-
image,
|
|
45
|
-
template,
|
|
46
|
-
job,
|
|
47
|
-
//= Deployment
|
|
48
|
-
prepBuild,
|
|
49
|
-
cloudrun,
|
|
50
|
-
affected,
|
|
51
|
-
constant,
|
|
52
|
-
registry,
|
|
53
|
-
internalCurl,
|
|
54
|
-
jwt,
|
|
55
|
-
];
|
|
56
|
-
|
|
57
|
-
const commands: {
|
|
13
|
+
// Types
|
|
14
|
+
type CommandMap = {
|
|
58
15
|
[key: string]: {
|
|
59
16
|
oneLiner: string;
|
|
60
17
|
keyExamples: string;
|
|
61
18
|
run: CallableFunction;
|
|
62
19
|
key: string;
|
|
63
20
|
};
|
|
64
|
-
}
|
|
65
|
-
allImports.forEach((imported) => {
|
|
66
|
-
Object.entries(imported).forEach(([key, object]) => {
|
|
67
|
-
const { oneLiner, keyExamples, run } = object;
|
|
68
|
-
commands[key] = { oneLiner, keyExamples, run, key };
|
|
69
|
-
});
|
|
70
|
-
});
|
|
21
|
+
}
|
|
71
22
|
|
|
72
|
-
|
|
23
|
+
// Presentation
|
|
73
24
|
const newLine = "\n ";
|
|
25
|
+
function maxKeyLength(commands: CommandMap) {
|
|
26
|
+
return Math.max(...Object.keys(commands).map((x) => x.length)) + 10;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Core commands
|
|
30
|
+
const coreCommands: CommandMap = {};
|
|
31
|
+
Object.entries(coreImports).forEach(([constKey, imported]) => {
|
|
32
|
+
const { oneLiner, keyExamples, run } = imported;
|
|
33
|
+
const key = 'command' in imported ? imported.command : constKey;
|
|
34
|
+
coreCommands[key] = { oneLiner, keyExamples, run, key };
|
|
35
|
+
});
|
|
36
|
+
const coreCommandsKeyLength = maxKeyLength(coreCommands);
|
|
37
|
+
|
|
38
|
+
// Extensions
|
|
39
|
+
const extensionCommands: CommandMap = {};
|
|
40
|
+
const activeExtensions = getConst('extensions', { ignoreIfInvalid: true });
|
|
41
|
+
if (activeExtensions?.length) {
|
|
42
|
+
const availableExtensionsLookup = Object.fromEntries(
|
|
43
|
+
Object.entries(extensionImports).map(([constKey, value]) => {
|
|
44
|
+
const { oneLiner, keyExamples, run } = value;
|
|
45
|
+
const keyInYaml = 'name' in value ? value.name : constKey;
|
|
46
|
+
const key = 'command' in value ? value.command : constKey;
|
|
47
|
+
return [keyInYaml, { oneLiner, keyExamples, run, key }];
|
|
48
|
+
})
|
|
49
|
+
);
|
|
50
|
+
for (const extension of activeExtensions) {
|
|
51
|
+
const extensionData = availableExtensionsLookup[extension];
|
|
52
|
+
if (!extensionData) {
|
|
53
|
+
console.error(`\nExtension "${extension}" referenced in constants.yaml is not supported\n\n`);
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
extensionCommands[extensionData.key] = extensionData;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
const extensionCommandsKeyLength = maxKeyLength(extensionCommands);
|
|
60
|
+
|
|
61
|
+
// Plugins
|
|
62
|
+
const pluginCommands: CommandMap = {};
|
|
63
|
+
if (existsSync('.devops/plugins')) {
|
|
64
|
+
const pluginsDir = path.join(process.cwd(), '.devops/plugins');
|
|
65
|
+
const pluginFiles = globSync(path.join(pluginsDir, '*.ts'));
|
|
66
|
+
for (const pluginFile of pluginFiles) {
|
|
67
|
+
const plugin = await import(pluginFile);
|
|
68
|
+
const keys = Object.keys(plugin);
|
|
69
|
+
if (keys.length !== 1) {
|
|
70
|
+
console.error(`Plugin ${pluginFile} must export exactly one command`);
|
|
71
|
+
process.exit(1);
|
|
72
|
+
}
|
|
73
|
+
const constKey = keys[0];
|
|
74
|
+
const { oneLiner, keyExamples, run, command } = plugin[constKey];
|
|
75
|
+
const key = command ?? constKey;
|
|
76
|
+
if (!oneLiner || !keyExamples || !run) {
|
|
77
|
+
console.error(`Plugin ${pluginFile} must export oneLiner, keyExamples, and run`);
|
|
78
|
+
process.exit(1);
|
|
79
|
+
}
|
|
80
|
+
if (typeof run !== 'function') {
|
|
81
|
+
console.error(`Plugin ${pluginFile} must export a run function`);
|
|
82
|
+
process.exit(1);
|
|
83
|
+
}
|
|
84
|
+
pluginCommands[key] = { oneLiner, keyExamples, run, key };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
const pluginCommandsKeyLength = maxKeyLength(pluginCommands);
|
|
74
88
|
|
|
75
89
|
const GENERAL_USAGE = `
|
|
76
90
|
Devops utilities for the monorepo.
|
|
@@ -95,14 +109,36 @@ CHOOSING ENV with <env-options>
|
|
|
95
109
|
To skip this check, use --skip-env-check.
|
|
96
110
|
|
|
97
111
|
|
|
98
|
-
COMMANDS
|
|
99
|
-
${Object.values(
|
|
112
|
+
CORE COMMANDS
|
|
113
|
+
${Object.values(coreCommands)
|
|
100
114
|
.map((cmd) =>
|
|
101
|
-
[cmd.key, " ".repeat(
|
|
115
|
+
[cmd.key, " ".repeat(coreCommandsKeyLength - cmd.key.length), cmd.oneLiner].join("")
|
|
102
116
|
)
|
|
103
117
|
.join(newLine)}
|
|
104
118
|
`;
|
|
105
119
|
|
|
120
|
+
const EXTENSION_USAGE = Object.keys(extensionCommands).length ? `
|
|
121
|
+
ACTIVE EXTENSIONS
|
|
122
|
+
${Object.values(extensionCommands)
|
|
123
|
+
.map((cmd) =>
|
|
124
|
+
[cmd.key, " ".repeat(extensionCommandsKeyLength - cmd.key.length), cmd.oneLiner].join("")
|
|
125
|
+
)
|
|
126
|
+
.join(newLine)}
|
|
127
|
+
` : '';
|
|
128
|
+
|
|
129
|
+
const PLUGIN_USAGE = Object.keys(pluginCommands).length ? `
|
|
130
|
+
ACTIVE PLUGINS
|
|
131
|
+
${Object.values(pluginCommands)
|
|
132
|
+
.map((cmd) =>
|
|
133
|
+
[cmd.key, " ".repeat(pluginCommandsKeyLength - cmd.key.length), cmd.oneLiner].join("")
|
|
134
|
+
)
|
|
135
|
+
.join(newLine)}
|
|
136
|
+
` : '';
|
|
137
|
+
|
|
138
|
+
const ALL_USAGE = [GENERAL_USAGE, EXTENSION_USAGE, PLUGIN_USAGE].filter(Boolean).join("");
|
|
139
|
+
|
|
140
|
+
const allCommands = { ...coreCommands, ...extensionCommands, ...pluginCommands };
|
|
141
|
+
|
|
106
142
|
// EXAMPLES
|
|
107
143
|
// ${Object.values(commands)
|
|
108
144
|
// .map((cmd) =>
|
|
@@ -115,7 +151,7 @@ COMMANDS
|
|
|
115
151
|
// .join(newLine)}
|
|
116
152
|
|
|
117
153
|
const commandObj = new CLICommandParser(commandArgs,);
|
|
118
|
-
const chosenCommand =
|
|
119
|
-
if (!chosenCommand) printUsageAndExit(
|
|
154
|
+
const chosenCommand = allCommands[commandObj.command];
|
|
155
|
+
if (!chosenCommand) printUsageAndExit(ALL_USAGE);
|
|
120
156
|
|
|
121
157
|
chosenCommand.run(commandObj);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CommandExecutor } from "../cli/common";
|
|
2
|
+
import { kubectlCommand } from "./k8s-helpers";
|
|
3
|
+
|
|
4
|
+
export function getRedisList() {
|
|
5
|
+
const cmd = kubectlCommand(`get pods -l app=redis-ha -A`);
|
|
6
|
+
const res = new CommandExecutor(cmd, { quiet: true }).exec();
|
|
7
|
+
if (!res) return null;
|
|
8
|
+
return res;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function establishRedisTunnel(namespace: string, port: string) {
|
|
12
|
+
const cmd = kubectlCommand(`port-forward svc/${namespace}-redis-ha ${port}:6379`, {
|
|
13
|
+
namespace,
|
|
14
|
+
});
|
|
15
|
+
new CommandExecutor(cmd).spawn();
|
|
16
|
+
}
|
package/src/plugins.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CommandExecutor, CLICommandParser, printUsageAndExit, StrongParams } from "./cli/common";
|
|
2
|
+
export { kubectlCommand } from "./libs/k8s-helpers";
|
|
3
|
+
|
|
4
|
+
import url from "url";
|
|
5
|
+
import path from "path";
|
|
6
|
+
const __file__ = url.fileURLToPath(import.meta.url);
|
|
7
|
+
const __cli__ = path.join(path.dirname(__file__), "cli");
|
|
8
|
+
export const execShPath = path.join(__cli__, "exec.sh");
|
package/src/types/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export const constFileSchema = z.object({
|
|
|
14
14
|
"cloudrun-artifact-registry-repo-path": z.string().optional(),
|
|
15
15
|
"extra-remote-environments": z.array(z.string()),
|
|
16
16
|
"extra-local-environments": z.array(z.string()),
|
|
17
|
+
"extensions": z.array(z.string()).optional(),
|
|
17
18
|
})
|
|
18
19
|
export type ConstFileSchema = z.infer<typeof constFileSchema>;
|
|
19
20
|
|
package/dist/cli/affected.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
affected: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=affected.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affected.d.ts","sourceRoot":"","sources":["../../src/cli/affected.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,UAAU,CAAC;AAoD7E,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAoD1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/cloudrun.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
cloudrun: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=cloudrun.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloudrun.d.ts","sourceRoot":"","sources":["../../src/cli/cloudrun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,UAAU,CAAC;AA6E7E,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAmD1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/console.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
console: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=console.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/cli/console.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAgB/D,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAmBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/constant.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
constant: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=constant.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../src/cli/constant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAe/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAI1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/db.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
db: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=db.d.ts.map
|
package/dist/cli/db.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/cli/db.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,UAAU,CAAC;AAsG7E,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAiBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/dml.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
dml: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=dml.d.ts.map
|
package/dist/cli/dml.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dml.d.ts","sourceRoot":"","sources":["../../src/cli/dml.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAoG/D,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAoBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/env.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
env: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=env.d.ts.map
|
package/dist/cli/env.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/cli/env.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,gBAAgB,EAGjB,MAAM,UAAU,CAAC;AAwBlB,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QA+CpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/exec.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
exec: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=exec.d.ts.map
|
package/dist/cli/exec.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/cli/exec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsC,MAAM,UAAU,CAAC;AA4BhF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAwBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/image.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "../../src/cli/common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
image: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=image.d.ts.map
|
package/dist/cli/image.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/cli/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,sBAAsB,CAAC;AA6KzF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAgCpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/init.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
init: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=init.d.ts.map
|
package/dist/cli/init.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/cli/init.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAmB/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAG1C;;;;;;;;AAED,wBAEE"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
'internal-curl': {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=internal-curl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal-curl.d.ts","sourceRoot":"","sources":["../../src/cli/internal-curl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAuB/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAmB1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/job.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "../../src/cli/common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
job: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=job.d.ts.map
|
package/dist/cli/job.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"job.d.ts","sourceRoot":"","sources":["../../src/cli/job.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,sBAAsB,CAAC;AA6CzF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QA4BpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/jwt.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
jwt: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=jwt.d.ts.map
|
package/dist/cli/jwt.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jwt.d.ts","sourceRoot":"","sources":["../../src/cli/jwt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAqB/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAK1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/namespace.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "../../src/cli/common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
namespace: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../src/cli/namespace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,sBAAsB,CAAC;AA0DzF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAapC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/prep-build.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
"prep-build": {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=prep-build.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prep-build.d.ts","sourceRoot":"","sources":["../../src/cli/prep-build.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AA0B/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBA0F1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/prisma.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
prisma: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=prisma.d.ts.map
|
package/dist/cli/prisma.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../src/cli/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAuB/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAK1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/redis.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
redis: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=redis.d.ts.map
|
package/dist/cli/redis.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../src/cli/redis.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,UAAU,CAAC;AA2D7E,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAiBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/registry.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
registry: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,UAAU,CAAC;AA8D7E,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAYpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/run-many.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
"run-many": {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=run-many.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-many.d.ts","sourceRoot":"","sources":["../../src/cli/run-many.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AAyB/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBA8B1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/run.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): Promise<void>;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
run: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=run.d.ts.map
|
package/dist/cli/run.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/cli/run.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,UAAU,CAAC;AA2B/D,iBAAe,GAAG,CAAC,MAAM,EAAE,gBAAgB,iBAc1C;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/template.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "../../src/cli/common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
template: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../src/cli/template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,sBAAsB,CAAC;AA4IzF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAsBpC;;;;;;;;AAED,wBAEE"}
|
package/dist/cli/test.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CLICommandParser } from "./common";
|
|
2
|
-
declare function run(cmdObj: CLICommandParser): void;
|
|
3
|
-
declare const _default: {
|
|
4
|
-
test: {
|
|
5
|
-
oneLiner: string;
|
|
6
|
-
keyExamples: string;
|
|
7
|
-
run: typeof run;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=test.d.ts.map
|
package/dist/cli/test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/cli/test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAsC,MAAM,UAAU,CAAC;AAehF,iBAAS,GAAG,CAAC,MAAM,EAAE,gBAAgB,QAUpC;;;;;;;;AAED,wBAEE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-redis.d.ts","sourceRoot":"","sources":["../../src/libs/k8s-redis.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,kBAK3B;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM;;SAajD;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAKnE"}
|
|
File without changes
|
|
File without changes
|