@superblocksteam/cli 1.9.3 → 1.12.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/LICENSE.txt +87 -0
- package/README.md +6 -6
- package/assets/custom-components/setup/package.json +1 -1
- package/assets/custom-components/setup/tsconfig.json +0 -1
- package/assets/injectedReactShim17.jsx +15 -0
- package/assets/injectedReactShim18.jsx +16 -0
- package/assets/injectedReactShimShared.jsx +140 -0
- package/bin/dev +5 -7
- package/bin/run +1 -3
- package/dist/appendHotReloadEventPlugin.d.mts +2 -0
- package/dist/appendHotReloadEventPlugin.mjs +43 -0
- package/dist/commands/commits.d.mts +18 -0
- package/dist/commands/{commits.js → commits.mjs} +59 -67
- package/dist/commands/components/{create.d.ts → create.d.mts} +2 -2
- package/dist/commands/components/{create.js → create.mjs} +84 -93
- package/dist/commands/components/{register.d.ts → register.d.mts} +1 -1
- package/dist/commands/components/register.mjs +12 -0
- package/dist/commands/components/{upload.d.ts → upload.d.mts} +2 -2
- package/dist/commands/components/{upload.js → upload.mjs} +39 -43
- package/dist/commands/components/{watch.d.ts → watch.d.mts} +1 -1
- package/dist/commands/components/{watch.js → watch.mjs} +29 -36
- package/dist/commands/config/{set.d.ts → set.d.mts} +2 -2
- package/dist/commands/config/{set.js → set.mjs} +28 -32
- package/dist/commands/{init.d.ts → init.d.mts} +4 -4
- package/dist/commands/{init.js → init.mjs} +63 -65
- package/dist/commands/{login.d.ts → login.d.mts} +1 -1
- package/dist/commands/login.mjs +55 -0
- package/dist/commands/{migrate.d.ts → migrate.d.mts} +1 -1
- package/dist/commands/{migrate.js → migrate.mjs} +38 -46
- package/dist/commands/pull.d.mts +17 -0
- package/dist/commands/{pull.js → pull.mjs} +74 -80
- package/dist/commands/push.d.mts +15 -0
- package/dist/commands/{push.js → push.mjs} +81 -90
- package/dist/commands/{rm.d.ts → rm.d.mts} +2 -2
- package/dist/commands/{rm.js → rm.mjs} +34 -40
- package/dist/common/{authenticated-command.js → authenticated-command.mjs} +65 -75
- package/dist/common/defaults/{create-component-defaults.js → create-component-defaults.mjs} +2 -7
- package/dist/common/{version-control.d.ts → version-control.d.mts} +13 -6
- package/dist/common/version-control.mjs +1064 -0
- package/dist/index.js +1 -5
- package/dist/productionCssPlugin.d.mts +2 -0
- package/dist/productionCssPlugin.mjs +50 -0
- package/dist/reactShimPlugin.d.mts +2 -0
- package/dist/reactShimPlugin.mjs +127 -0
- package/dist/util/migrationWarningsForApplications.mjs +47 -0
- package/dist/util/{migrationsForDotfiles.js → migrationsForDotfiles.mjs} +10 -17
- package/oclif.manifest.json +274 -161
- package/package.json +45 -45
- package/dist/commands/commits.d.ts +0 -18
- package/dist/commands/components/register.js +0 -15
- package/dist/commands/login.js +0 -61
- package/dist/commands/pull.d.ts +0 -17
- package/dist/commands/push.d.ts +0 -15
- package/dist/common/version-control.js +0 -716
- package/dist/util/migrationWarningsForApplications.js +0 -52
- /package/dist/common/{authenticated-command.d.ts → authenticated-command.d.mts} +0 -0
- /package/dist/common/defaults/{create-component-defaults.d.ts → create-component-defaults.d.mts} +0 -0
- /package/dist/util/{migrationWarningsForApplications.d.ts → migrationWarningsForApplications.d.mts} +0 -0
- /package/dist/util/{migrationsForDotfiles.d.ts → migrationsForDotfiles.d.mts} +0 -0
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import path from "path";
|
|
2
|
+
import { Flags, ux } from "@oclif/core";
|
|
3
|
+
import { COMPONENT_EVENT_HEADER, CUSTOM_COMPONENTS_PATH, ComponentEvent, } from "@superblocksteam/util";
|
|
4
|
+
import react from "@vitejs/plugin-react";
|
|
5
|
+
import { bold, green } from "colorette";
|
|
6
|
+
import fs from "fs-extra";
|
|
7
|
+
import { createLogger, build } from "vite";
|
|
8
|
+
import { AuthenticatedApplicationCommand } from "../../common/authenticated-command.mjs";
|
|
9
|
+
import { productionCssPlugin } from "../../productionCssPlugin.mjs";
|
|
10
|
+
import { injectReactVersionsPlugin } from "../../reactShimPlugin.mjs";
|
|
11
|
+
export default class Upload extends AuthenticatedApplicationCommand {
|
|
12
|
+
static description = "Upload creates a production-ready bundle and saves the files for use outside of Local Development mode.";
|
|
13
|
+
static examples = [
|
|
14
|
+
"<%= config.bin %> components upload",
|
|
15
|
+
"<%= config.bin %> components upload -b feature-branch",
|
|
16
|
+
];
|
|
17
|
+
static flags = {
|
|
18
|
+
branch: Flags.string({
|
|
19
|
+
char: "b",
|
|
20
|
+
description: "Superblocks branch to push to, the current (local) git branch will be used by default",
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
15
23
|
async run() {
|
|
16
24
|
const { flags } = await this.parse(Upload);
|
|
17
|
-
|
|
18
|
-
const exists = await fs.pathExists(
|
|
25
|
+
ux.action.start("Scanning for Superblocks components...");
|
|
26
|
+
const exists = await fs.pathExists(CUSTOM_COMPONENTS_PATH);
|
|
19
27
|
if (!exists) {
|
|
20
|
-
|
|
28
|
+
ux.action.stop();
|
|
21
29
|
this.error("No components folder found in current directory, please run 'superblocks components create' first", {
|
|
22
30
|
exit: 1,
|
|
23
31
|
});
|
|
24
32
|
}
|
|
25
|
-
const { branchName } = await this.validateApplicationGitSetup(
|
|
33
|
+
const { branchName } = await this.validateApplicationGitSetup(ComponentEvent.UPLOAD, flags.branch);
|
|
26
34
|
const headers = {
|
|
27
|
-
[
|
|
35
|
+
[COMPONENT_EVENT_HEADER]: ComponentEvent.REGISTER,
|
|
28
36
|
};
|
|
29
37
|
const configs = await this.registerComponents(headers);
|
|
30
38
|
if (!configs)
|
|
@@ -34,13 +42,13 @@ class Upload extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
34
42
|
config.name,
|
|
35
43
|
config.componentPath,
|
|
36
44
|
]));
|
|
37
|
-
const viteLogger =
|
|
45
|
+
const viteLogger = createLogger();
|
|
38
46
|
viteLogger.info = (message) => {
|
|
39
47
|
this.log(message);
|
|
40
48
|
};
|
|
41
|
-
|
|
49
|
+
ux.action.start("Building components...");
|
|
42
50
|
await (async () => {
|
|
43
|
-
await
|
|
51
|
+
await build({
|
|
44
52
|
configFile: false,
|
|
45
53
|
build: {
|
|
46
54
|
rollupOptions: {
|
|
@@ -56,9 +64,9 @@ class Upload extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
56
64
|
},
|
|
57
65
|
customLogger: viteLogger,
|
|
58
66
|
plugins: [
|
|
59
|
-
(
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
react(),
|
|
68
|
+
injectReactVersionsPlugin(),
|
|
69
|
+
productionCssPlugin(),
|
|
62
70
|
{
|
|
63
71
|
name: "remove-node-module-maps",
|
|
64
72
|
apply: "build",
|
|
@@ -71,7 +79,7 @@ class Upload extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
71
79
|
],
|
|
72
80
|
});
|
|
73
81
|
})();
|
|
74
|
-
|
|
82
|
+
ux.action.stop();
|
|
75
83
|
/*
|
|
76
84
|
1. Build
|
|
77
85
|
2. Get S3 prefix
|
|
@@ -80,7 +88,7 @@ class Upload extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
80
88
|
5. Auto-commit DSL
|
|
81
89
|
*/
|
|
82
90
|
try {
|
|
83
|
-
|
|
91
|
+
ux.action.start("Uploading components...");
|
|
84
92
|
const fileRelativePaths = [];
|
|
85
93
|
const excluded = [
|
|
86
94
|
".superblocks",
|
|
@@ -93,34 +101,22 @@ class Upload extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
93
101
|
await walkThroughDirectory(".", fileRelativePaths, excluded);
|
|
94
102
|
this.log(fileRelativePaths.join("\n"));
|
|
95
103
|
await this.getSdk().uploadComponents(this.applicationConfig.id, configs, fileRelativePaths, branchName);
|
|
96
|
-
|
|
104
|
+
ux.action.stop();
|
|
97
105
|
}
|
|
98
106
|
catch (e) {
|
|
99
|
-
|
|
107
|
+
ux.action.stop();
|
|
100
108
|
this.error(`Failed to upload components - ${e.message}`, { exit: 1 });
|
|
101
109
|
}
|
|
102
110
|
this.log("You can now disable local dev mode and test your production assets");
|
|
103
|
-
this.log(
|
|
111
|
+
this.log(bold(green("Once you are done developing please remember to commit your changes in the Superblocks UI.")));
|
|
104
112
|
}
|
|
105
113
|
}
|
|
106
|
-
Upload.description = "Upload creates a production-ready bundle and saves the files for use outside of Local Development mode.";
|
|
107
|
-
Upload.examples = [
|
|
108
|
-
"<%= config.bin %> components upload",
|
|
109
|
-
"<%= config.bin %> components upload -b feature-branch",
|
|
110
|
-
];
|
|
111
|
-
Upload.flags = {
|
|
112
|
-
branch: core_1.Flags.string({
|
|
113
|
-
char: "b",
|
|
114
|
-
description: "Superblocks branch to push to, the current (local) git branch will be used by default",
|
|
115
|
-
}),
|
|
116
|
-
};
|
|
117
|
-
exports.default = Upload;
|
|
118
114
|
async function walkThroughDirectory(directory, mutableFiles, excluded) {
|
|
119
115
|
const files = await fs.readdir(directory);
|
|
120
116
|
for (const file of files) {
|
|
121
117
|
if (excluded.includes(file))
|
|
122
118
|
continue;
|
|
123
|
-
const absolute =
|
|
119
|
+
const absolute = path.join(directory, file);
|
|
124
120
|
if ((await fs.stat(absolute)).isDirectory()) {
|
|
125
121
|
await walkThroughDirectory(absolute, mutableFiles, excluded);
|
|
126
122
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Plugin } from "vite";
|
|
2
|
-
import { AuthenticatedApplicationCommand } from "../../common/authenticated-command";
|
|
2
|
+
import { AuthenticatedApplicationCommand } from "../../common/authenticated-command.mjs";
|
|
3
3
|
export declare function healthEndpointMiddleware(getBranch: () => Promise<string | null>): Plugin;
|
|
4
4
|
export default class Watch extends AuthenticatedApplicationCommand {
|
|
5
5
|
static description: string;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const vite_1 = require("vite");
|
|
11
|
-
const authenticated_command_1 = require("../../common/authenticated-command");
|
|
12
|
-
const version_control_1 = require("../../common/version-control");
|
|
13
|
-
function healthEndpointMiddleware(getBranch) {
|
|
1
|
+
import { COMPONENT_EVENT_HEADER, ComponentEvent } from "@superblocksteam/util";
|
|
2
|
+
import react from "@vitejs/plugin-react";
|
|
3
|
+
import { bold, green, yellow, red, magenta } from "colorette";
|
|
4
|
+
import { createLogger, createServer } from "vite";
|
|
5
|
+
import { appendHotReloadEventPlugin } from "../../appendHotReloadEventPlugin.mjs";
|
|
6
|
+
import { AuthenticatedApplicationCommand } from "../../common/authenticated-command.mjs";
|
|
7
|
+
import { getCurrentGitBranchIfGit } from "../../common/version-control.mjs";
|
|
8
|
+
import { injectReactVersionsPlugin } from "../../reactShimPlugin.mjs";
|
|
9
|
+
export function healthEndpointMiddleware(getBranch) {
|
|
14
10
|
return {
|
|
15
11
|
name: "health-endpoint-middleware",
|
|
16
12
|
configureServer: (server) => {
|
|
@@ -33,18 +29,18 @@ function healthEndpointMiddleware(getBranch) {
|
|
|
33
29
|
},
|
|
34
30
|
};
|
|
35
31
|
}
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
export default class Watch extends AuthenticatedApplicationCommand {
|
|
33
|
+
static description = "watch for changes to your custom components";
|
|
38
34
|
async run() {
|
|
39
35
|
const headers = {
|
|
40
|
-
[
|
|
36
|
+
[COMPONENT_EVENT_HEADER]: ComponentEvent.REGISTER,
|
|
41
37
|
};
|
|
42
38
|
await this.registerComponents(headers);
|
|
43
|
-
this.log(
|
|
39
|
+
this.log(yellow("Remember to refresh your application to see any newly registered components."));
|
|
44
40
|
this.log();
|
|
45
41
|
const editModeUrl = new URL(await this.getEditModeUrl());
|
|
46
42
|
editModeUrl.searchParams.set("devMode", "true");
|
|
47
|
-
const { branchName, localBranchName } = await this.validateApplicationGitSetup(
|
|
43
|
+
const { branchName, localBranchName } = await this.validateApplicationGitSetup(ComponentEvent.REGISTER);
|
|
48
44
|
if (branchName) {
|
|
49
45
|
editModeUrl.searchParams.set("branch", branchName);
|
|
50
46
|
}
|
|
@@ -54,9 +50,9 @@ class Watch extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
54
50
|
const getBranch = async () => {
|
|
55
51
|
let curLocalBranchName;
|
|
56
52
|
try {
|
|
57
|
-
curLocalBranchName = await
|
|
53
|
+
curLocalBranchName = await getCurrentGitBranchIfGit();
|
|
58
54
|
}
|
|
59
|
-
catch
|
|
55
|
+
catch {
|
|
60
56
|
curLocalBranchName = null;
|
|
61
57
|
}
|
|
62
58
|
if (curLocalBranchName === lastLocalBranchName) {
|
|
@@ -65,30 +61,29 @@ class Watch extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
65
61
|
}
|
|
66
62
|
else {
|
|
67
63
|
// the quick check indicates that the branch has changed, so we need to make an API call to validate the new branch
|
|
68
|
-
const { branchName, localBranchName } = await this.validateApplicationGitSetup(
|
|
64
|
+
const { branchName, localBranchName } = await this.validateApplicationGitSetup(ComponentEvent.REGISTER);
|
|
69
65
|
lastBranchName = branchName;
|
|
70
66
|
lastLocalBranchName = localBranchName;
|
|
71
67
|
return branchName;
|
|
72
68
|
}
|
|
73
69
|
};
|
|
74
70
|
const port = 3002;
|
|
75
|
-
const viteLogger =
|
|
71
|
+
const viteLogger = createLogger();
|
|
76
72
|
viteLogger.info = (message) => {
|
|
77
73
|
this.log(message);
|
|
78
74
|
};
|
|
79
75
|
viteLogger.warn = (msg) => {
|
|
80
|
-
this.log(
|
|
76
|
+
this.log(yellow(msg));
|
|
81
77
|
};
|
|
82
78
|
viteLogger.warnOnce = (msg) => {
|
|
83
|
-
this.log(
|
|
79
|
+
this.log(yellow(msg));
|
|
84
80
|
};
|
|
85
81
|
viteLogger.error = (msg) => {
|
|
86
|
-
this.log(
|
|
82
|
+
this.log(red(msg));
|
|
87
83
|
};
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
89
84
|
viteLogger.clearScreen = () => { };
|
|
90
85
|
await (async () => {
|
|
91
|
-
const server = await
|
|
86
|
+
const server = await createServer({
|
|
92
87
|
configFile: false,
|
|
93
88
|
base: `http://localhost:${port}`,
|
|
94
89
|
server: {
|
|
@@ -101,20 +96,18 @@ class Watch extends authenticated_command_1.AuthenticatedApplicationCommand {
|
|
|
101
96
|
customLogger: viteLogger,
|
|
102
97
|
plugins: [
|
|
103
98
|
healthEndpointMiddleware(getBranch),
|
|
104
|
-
(
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
react(),
|
|
100
|
+
appendHotReloadEventPlugin(getBranch),
|
|
101
|
+
injectReactVersionsPlugin(),
|
|
107
102
|
],
|
|
108
103
|
});
|
|
109
104
|
await server.listen();
|
|
110
|
-
this.log(
|
|
111
|
-
this.log(
|
|
105
|
+
this.log(green(`Local server started at port ${port}`));
|
|
106
|
+
this.log(green(`Visit your application at:`));
|
|
112
107
|
this.log();
|
|
113
|
-
this.log(
|
|
108
|
+
this.log(bold(magenta(editModeUrl.href)));
|
|
114
109
|
this.log();
|
|
115
|
-
this.log(
|
|
110
|
+
this.log(yellow(`Please ensure that Local Dev Mode is enabled in your Application so that the component is fetched from your local dev server. Learn more about Local Dev Mode here: ${magenta("https://docs.superblocks.com/applications/custom-components/development-lifecycle#local-development-mode")}`));
|
|
116
111
|
})();
|
|
117
112
|
}
|
|
118
113
|
}
|
|
119
|
-
Watch.description = "watch for changes to your custom components";
|
|
120
|
-
exports.default = Watch;
|
|
@@ -3,8 +3,8 @@ export default class SetSuperblocksConfig extends Command {
|
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static args: {
|
|
6
|
-
property: import("@oclif/core/
|
|
7
|
-
value: import("@oclif/core/
|
|
6
|
+
property: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
value: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
8
8
|
};
|
|
9
9
|
run(): Promise<void>;
|
|
10
10
|
validateDomain(domain: string): Promise<void>;
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import dns from "dns";
|
|
2
|
+
import { promisify } from "util";
|
|
3
|
+
import { Args, Command } from "@oclif/core";
|
|
4
|
+
import { getLocalTokenWithUrlIfExists, saveApiToken, } from "@superblocksteam/util";
|
|
5
|
+
export default class SetSuperblocksConfig extends Command {
|
|
6
|
+
static description = "Sets the specified property in your Superblocks configuration. A property governs the behavior of the Superblocks CLI, such as Superblocks region to interact with";
|
|
7
|
+
static examples = [
|
|
8
|
+
"<%= config.bin %> <%= command.id %> domain eu.superblocks.com",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> domain app.superblocks.com",
|
|
10
|
+
];
|
|
11
|
+
static args = {
|
|
12
|
+
property: Args.string({
|
|
13
|
+
description: "Superblocks config name, e.g. domain",
|
|
14
|
+
options: ["domain"],
|
|
15
|
+
required: true,
|
|
16
|
+
}),
|
|
17
|
+
value: Args.string({
|
|
18
|
+
description: "Superblocks config value",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
};
|
|
9
22
|
async run() {
|
|
10
23
|
const { args } = await this.parse(SetSuperblocksConfig);
|
|
11
24
|
try {
|
|
@@ -14,26 +27,26 @@ class SetSuperblocksConfig extends core_1.Command {
|
|
|
14
27
|
const newDomain = args.value;
|
|
15
28
|
const newSuperblocksBaseUrl = `https://${newDomain}/`;
|
|
16
29
|
await this.validateDomain(newDomain);
|
|
17
|
-
const result = await
|
|
30
|
+
const result = await getLocalTokenWithUrlIfExists();
|
|
18
31
|
if (result) {
|
|
19
32
|
if (!("token" in result)) {
|
|
20
33
|
// domain only, no token
|
|
21
|
-
await
|
|
34
|
+
await saveApiToken(newSuperblocksBaseUrl);
|
|
22
35
|
break;
|
|
23
36
|
}
|
|
24
37
|
// existing token with domain
|
|
25
38
|
const { token, superblocksBaseUrl } = result;
|
|
26
39
|
const tokenToSave = newSuperblocksBaseUrl === superblocksBaseUrl ? token : undefined;
|
|
27
40
|
if (tokenToSave) {
|
|
28
|
-
await
|
|
41
|
+
await saveApiToken(newSuperblocksBaseUrl, tokenToSave);
|
|
29
42
|
}
|
|
30
43
|
else {
|
|
31
|
-
await
|
|
44
|
+
await saveApiToken(newSuperblocksBaseUrl);
|
|
32
45
|
}
|
|
33
46
|
}
|
|
34
47
|
else {
|
|
35
48
|
// no existing token
|
|
36
|
-
await
|
|
49
|
+
await saveApiToken(newSuperblocksBaseUrl);
|
|
37
50
|
}
|
|
38
51
|
break;
|
|
39
52
|
}
|
|
@@ -51,29 +64,12 @@ class SetSuperblocksConfig extends core_1.Command {
|
|
|
51
64
|
if (!domainRegex.test(domain)) {
|
|
52
65
|
throw new Error(errorMessage);
|
|
53
66
|
}
|
|
54
|
-
const lookup =
|
|
67
|
+
const lookup = promisify(dns.lookup);
|
|
55
68
|
try {
|
|
56
69
|
await lookup(domain);
|
|
57
70
|
}
|
|
58
|
-
catch
|
|
71
|
+
catch {
|
|
59
72
|
throw new Error(errorMessage);
|
|
60
73
|
}
|
|
61
74
|
}
|
|
62
75
|
}
|
|
63
|
-
SetSuperblocksConfig.description = "Sets the specified property in your Superblocks configuration. A property governs the behavior of the Superblocks CLI, such as Superblocks region to interact with";
|
|
64
|
-
SetSuperblocksConfig.examples = [
|
|
65
|
-
"<%= config.bin %> <%= command.id %> domain eu.superblocks.com",
|
|
66
|
-
"<%= config.bin %> <%= command.id %> domain app.superblocks.com",
|
|
67
|
-
];
|
|
68
|
-
SetSuperblocksConfig.args = {
|
|
69
|
-
property: core_1.Args.string({
|
|
70
|
-
description: "Superblocks config name, e.g. domain",
|
|
71
|
-
options: ["domain"],
|
|
72
|
-
required: true,
|
|
73
|
-
}),
|
|
74
|
-
value: core_1.Args.string({
|
|
75
|
-
description: "Superblocks config value",
|
|
76
|
-
required: true,
|
|
77
|
-
}),
|
|
78
|
-
};
|
|
79
|
-
exports.default = SetSuperblocksConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AuthenticatedCommand } from "../common/authenticated-command";
|
|
1
|
+
import { AuthenticatedCommand } from "../common/authenticated-command.mjs";
|
|
2
2
|
export default class Initialize extends AuthenticatedCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
|
-
mode: import("@oclif/core/
|
|
7
|
-
"skip-signing-verification": import("@oclif/core/
|
|
6
|
+
mode: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
"skip-signing-verification": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
};
|
|
9
9
|
static args: {
|
|
10
|
-
resource_url: import("@oclif/core/
|
|
10
|
+
resource_url: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
11
11
|
};
|
|
12
12
|
run(): Promise<void>;
|
|
13
13
|
private createTasks;
|