genbox 1.0.124 → 1.0.126
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/commands/list.js +3 -0
- package/dist/commands/status.js +3 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/logo.js +34 -0
- package/package.json +1 -1
package/dist/commands/list.js
CHANGED
|
@@ -8,6 +8,7 @@ const commander_1 = require("commander");
|
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
const api_1 = require("../api");
|
|
10
10
|
const genbox_selector_1 = require("../genbox-selector");
|
|
11
|
+
const logo_1 = require("../utils/logo");
|
|
11
12
|
exports.listCommand = new commander_1.Command('list')
|
|
12
13
|
.alias('ls')
|
|
13
14
|
.description('List genboxes (scoped to current project by default)')
|
|
@@ -15,6 +16,8 @@ exports.listCommand = new commander_1.Command('list')
|
|
|
15
16
|
.option('--terminated', 'Include terminated genboxes')
|
|
16
17
|
.action(async (options) => {
|
|
17
18
|
try {
|
|
19
|
+
// Print Genbox logo
|
|
20
|
+
(0, logo_1.printLogo)();
|
|
18
21
|
const projectName = (0, genbox_selector_1.getProjectContext)();
|
|
19
22
|
const genboxes = await (0, genbox_selector_1.getGenboxes)({
|
|
20
23
|
all: options.all,
|
package/dist/commands/status.js
CHANGED
|
@@ -43,6 +43,7 @@ const api_1 = require("../api");
|
|
|
43
43
|
const config_1 = require("../config");
|
|
44
44
|
const genbox_selector_1 = require("../genbox-selector");
|
|
45
45
|
const ssh_config_1 = require("../ssh-config");
|
|
46
|
+
const logo_1 = require("../utils/logo");
|
|
46
47
|
const os = __importStar(require("os"));
|
|
47
48
|
const path = __importStar(require("path"));
|
|
48
49
|
const fs = __importStar(require("fs"));
|
|
@@ -282,6 +283,8 @@ exports.statusCommand = new commander_1.Command('status')
|
|
|
282
283
|
console.error(chalk_1.default.red(error.message));
|
|
283
284
|
return;
|
|
284
285
|
}
|
|
286
|
+
// Print Genbox logo
|
|
287
|
+
(0, logo_1.printLogo)();
|
|
285
288
|
console.log(chalk_1.default.blue(`[INFO] Checking status of ${selectedName}...`));
|
|
286
289
|
console.log('');
|
|
287
290
|
// 3. Check status from DB first (more reliable than SSH)
|
package/dist/utils/index.js
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.printLogo = printLogo;
|
|
7
|
+
exports.getLogo = getLogo;
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
const GENBOX_LOGO = `
|
|
10
|
+
XXXX
|
|
11
|
+
XXXX
|
|
12
|
+
XXXXXXXXXXXXXX XXXXXXXXXXX XXXX XXXXX XXXX XXXXX XXXXXXXXXXXX XXXX XXX
|
|
13
|
+
XXXXXXXXXXXXXX XXXXXXXXXXX XXXX XXXXXXX XXXX XXXXXX XXXXXXXXXXXX XXXX XXXX
|
|
14
|
+
XXXXX XXXXX XXXXX XXXX XXXXXXXX XXXX XXX XXXX XXXX XXXX XXXX XXXX
|
|
15
|
+
XXXXX XXXXXX XXXXXXXXXXX XXXXXXX XXXXX XXXXXX XXXX XXXX XXXX XXXXXXX
|
|
16
|
+
XXXXX XX XXXXX XXXXX XXXXXX XXXXX XXXXX XXXX XXXX XXXX XXXX XXXX
|
|
17
|
+
XXXXXX XXXXX XXXXXXXXXXX XXXXX XXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXX XXXX
|
|
18
|
+
XXXXX XXXXXXXXXXX XXXXX XXXXX XXXXXXXXXXXXX XXXXXXXXXXXX XXXX XXX
|
|
19
|
+
XXXXXXXXXXXXXX
|
|
20
|
+
XXXXXXXXXXXXXX
|
|
21
|
+
`;
|
|
22
|
+
/**
|
|
23
|
+
* Prints the Genbox ASCII art logo
|
|
24
|
+
* @param color - Optional chalk color function (defaults to cyan)
|
|
25
|
+
*/
|
|
26
|
+
function printLogo(color = chalk_1.default.cyan) {
|
|
27
|
+
console.log(color(GENBOX_LOGO));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns the Genbox ASCII art logo string
|
|
31
|
+
*/
|
|
32
|
+
function getLogo() {
|
|
33
|
+
return GENBOX_LOGO;
|
|
34
|
+
}
|