bdy 1.18.21-dev → 1.18.22-dev
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/distTs/package.json +1 -3
- package/distTs/src/index.js +0 -6
- package/distTs/src/main.js +12 -1
- package/package.json +1 -3
package/distTs/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bdy",
|
|
3
3
|
"preferGlobal": false,
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.22-dev",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"range-parser": "1.2.1",
|
|
67
67
|
"socket.io-client": "4.7.5",
|
|
68
68
|
"ssh2": "1.15.0",
|
|
69
|
-
"tabtab": "3.0.2",
|
|
70
69
|
"tar-stream": "3.1.7",
|
|
71
70
|
"terminal-kit": "3.1.1",
|
|
72
71
|
"undici": "6.23.0",
|
|
@@ -96,7 +95,6 @@
|
|
|
96
95
|
"@types/punycode": "2.1.4",
|
|
97
96
|
"@types/range-parser": "1.2.1",
|
|
98
97
|
"@types/ssh2": "1.15.5",
|
|
99
|
-
"@types/tabtab": "3.0.2",
|
|
100
98
|
"@types/tar-stream": "3.1.4",
|
|
101
99
|
"@types/terminal-kit": "2.5.6",
|
|
102
100
|
"@types/unzipper": "0.10.11",
|
package/distTs/src/index.js
CHANGED
|
@@ -24,8 +24,6 @@ const project_1 = __importDefault(require("./command/project"));
|
|
|
24
24
|
const whoami_1 = __importDefault(require("./command/whoami"));
|
|
25
25
|
const package_1 = __importDefault(require("./command/package"));
|
|
26
26
|
const api_1 = __importDefault(require("./command/api"));
|
|
27
|
-
const autocomplete_1 = __importDefault(require("./autocomplete"));
|
|
28
|
-
const autocomplete_2 = __importDefault(require("./command/autocomplete"));
|
|
29
27
|
const domain_1 = __importDefault(require("./command/domain"));
|
|
30
28
|
const main_1 = __importDefault(require("./main"));
|
|
31
29
|
stream_1.default.setDefaultHighWaterMark(false, 67108864);
|
|
@@ -56,11 +54,7 @@ program.addCommand(logout_1.default);
|
|
|
56
54
|
program.addCommand(workspace_1.default);
|
|
57
55
|
program.addCommand(project_1.default);
|
|
58
56
|
program.addCommand(api_1.default);
|
|
59
|
-
program.addCommand(autocomplete_2.default);
|
|
60
57
|
program.action(async () => {
|
|
61
58
|
await (0, main_1.default)(program);
|
|
62
59
|
});
|
|
63
|
-
if (autocomplete_1.default.init(program)) {
|
|
64
|
-
process.exit(0);
|
|
65
|
-
}
|
|
66
60
|
program.parse();
|
package/distTs/src/main.js
CHANGED
|
@@ -16,18 +16,29 @@ const selectCommand = async (parentCommand) => {
|
|
|
16
16
|
value: name,
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
+
items = items.sort((a, b) => a.name.localeCompare(b.name));
|
|
20
|
+
const goBack = 'go back';
|
|
19
21
|
items.push({
|
|
20
22
|
name: 'help',
|
|
21
23
|
description: 'Display help for current command',
|
|
22
24
|
value: 'help',
|
|
23
25
|
});
|
|
24
|
-
|
|
26
|
+
if (parentCommand.parent) {
|
|
27
|
+
items.unshift({
|
|
28
|
+
name: goBack,
|
|
29
|
+
description: 'Go back to parent command',
|
|
30
|
+
value: goBack
|
|
31
|
+
});
|
|
32
|
+
}
|
|
25
33
|
output_1.default.clearPreviousLine();
|
|
26
34
|
const name = await output_1.default.inputMenuAdv(getFinalCommand(parentCommand, {}, []), items);
|
|
27
35
|
if (name === 'help') {
|
|
28
36
|
parentCommand.help();
|
|
29
37
|
output_1.default.exitNormal();
|
|
30
38
|
}
|
|
39
|
+
else if (name === goBack && parentCommand.parent) {
|
|
40
|
+
return await selectCommand(parentCommand.parent);
|
|
41
|
+
}
|
|
31
42
|
const cmd = map[name];
|
|
32
43
|
if (cmd.commands.length > 0) {
|
|
33
44
|
return await selectCommand(cmd);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bdy",
|
|
3
3
|
"preferGlobal": false,
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.22-dev",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"range-parser": "1.2.1",
|
|
67
67
|
"socket.io-client": "4.7.5",
|
|
68
68
|
"ssh2": "1.15.0",
|
|
69
|
-
"tabtab": "3.0.2",
|
|
70
69
|
"tar-stream": "3.1.7",
|
|
71
70
|
"terminal-kit": "3.1.1",
|
|
72
71
|
"undici": "6.23.0",
|
|
@@ -96,7 +95,6 @@
|
|
|
96
95
|
"@types/punycode": "2.1.4",
|
|
97
96
|
"@types/range-parser": "1.2.1",
|
|
98
97
|
"@types/ssh2": "1.15.5",
|
|
99
|
-
"@types/tabtab": "3.0.2",
|
|
100
98
|
"@types/tar-stream": "3.1.4",
|
|
101
99
|
"@types/terminal-kit": "2.5.6",
|
|
102
100
|
"@types/unzipper": "0.10.11",
|