@settlemint/sdk-cli 1.0.8-pr0c78ff57 → 1.0.8-pr0d10ee09
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.js +919 -126
- package/dist/cli.js.map +27 -11
- package/package.json +4 -5
package/dist/cli.js
CHANGED
|
@@ -29,6 +29,811 @@ var __export = (target, all) => {
|
|
|
29
29
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
30
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
31
|
|
|
32
|
+
// ../../node_modules/console-table-printer/dist/src/utils/colored-console-line.js
|
|
33
|
+
var require_colored_console_line = __commonJS((exports) => {
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.DEFAULT_COLOR_MAP = undefined;
|
|
36
|
+
exports.DEFAULT_COLOR_MAP = {
|
|
37
|
+
red: "\x1B[31m",
|
|
38
|
+
green: "\x1B[32m",
|
|
39
|
+
yellow: "\x1B[33m",
|
|
40
|
+
blue: "\x1B[34m",
|
|
41
|
+
magenta: "\x1B[35m",
|
|
42
|
+
cyan: "\x1B[36m",
|
|
43
|
+
white: "\x1B[37m",
|
|
44
|
+
white_bold: "\x1B[01m",
|
|
45
|
+
reset: "\x1B[0m"
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
class ColoredConsoleLine {
|
|
49
|
+
constructor(colorMap = exports.DEFAULT_COLOR_MAP) {
|
|
50
|
+
this.text = "";
|
|
51
|
+
this.colorMap = colorMap;
|
|
52
|
+
}
|
|
53
|
+
addCharsWithColor(color, text) {
|
|
54
|
+
const colorAnsi = this.colorMap[color];
|
|
55
|
+
this.text += colorAnsi !== undefined ? `${colorAnsi}${text}${this.colorMap.reset}` : text;
|
|
56
|
+
}
|
|
57
|
+
renderConsole() {
|
|
58
|
+
return this.text;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.default = ColoredConsoleLine;
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// ../../node_modules/console-table-printer/dist/src/utils/table-constants.js
|
|
65
|
+
var require_table_constants = __commonJS((exports) => {
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DEFAULT_HEADER_ALIGNMENT = exports.DEFAULT_ROW_ALIGNMENT = exports.DEFAULT_HEADER_FONT_COLOR = exports.DEFAULT_ROW_FONT_COLOR = exports.COLORS = exports.ALIGNMENTS = exports.DEFAULT_TABLE_STYLE = exports.DEFAULT_ROW_SEPARATOR = exports.DEFAULT_COLUMN_LEN = undefined;
|
|
68
|
+
exports.DEFAULT_COLUMN_LEN = 20;
|
|
69
|
+
exports.DEFAULT_ROW_SEPARATOR = false;
|
|
70
|
+
exports.DEFAULT_TABLE_STYLE = {
|
|
71
|
+
headerTop: {
|
|
72
|
+
left: "┌",
|
|
73
|
+
mid: "┬",
|
|
74
|
+
right: "┐",
|
|
75
|
+
other: "─"
|
|
76
|
+
},
|
|
77
|
+
headerBottom: {
|
|
78
|
+
left: "├",
|
|
79
|
+
mid: "┼",
|
|
80
|
+
right: "┤",
|
|
81
|
+
other: "─"
|
|
82
|
+
},
|
|
83
|
+
tableBottom: {
|
|
84
|
+
left: "└",
|
|
85
|
+
mid: "┴",
|
|
86
|
+
right: "┘",
|
|
87
|
+
other: "─"
|
|
88
|
+
},
|
|
89
|
+
vertical: "│",
|
|
90
|
+
rowSeparator: {
|
|
91
|
+
left: "├",
|
|
92
|
+
mid: "┼",
|
|
93
|
+
right: "┤",
|
|
94
|
+
other: "─"
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
exports.ALIGNMENTS = ["right", "left", "center"];
|
|
98
|
+
exports.COLORS = [
|
|
99
|
+
"red",
|
|
100
|
+
"green",
|
|
101
|
+
"yellow",
|
|
102
|
+
"white",
|
|
103
|
+
"blue",
|
|
104
|
+
"magenta",
|
|
105
|
+
"cyan",
|
|
106
|
+
"white_bold",
|
|
107
|
+
"reset"
|
|
108
|
+
];
|
|
109
|
+
exports.DEFAULT_ROW_FONT_COLOR = "white";
|
|
110
|
+
exports.DEFAULT_HEADER_FONT_COLOR = "white_bold";
|
|
111
|
+
exports.DEFAULT_ROW_ALIGNMENT = "right";
|
|
112
|
+
exports.DEFAULT_HEADER_ALIGNMENT = "center";
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// ../../node_modules/console-table-printer/dist/src/internalTable/input-converter.js
|
|
116
|
+
var require_input_converter = __commonJS((exports) => {
|
|
117
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
118
|
+
exports.rawColumnToInternalColumn = exports.objIfExists = undefined;
|
|
119
|
+
var table_constants_1 = require_table_constants();
|
|
120
|
+
var objIfExists = (key, val) => {
|
|
121
|
+
if (!val) {
|
|
122
|
+
return {};
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
[key]: val
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
exports.objIfExists = objIfExists;
|
|
129
|
+
var rawColumnToInternalColumn = (column) => {
|
|
130
|
+
var _a;
|
|
131
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ name: column.name, title: (_a = column.title) !== null && _a !== undefined ? _a : column.name }, (0, exports.objIfExists)("color", column.color)), (0, exports.objIfExists)("maxLen", column.maxLen)), (0, exports.objIfExists)("minLen", column.minLen)), { alignment: column.alignment || table_constants_1.DEFAULT_ROW_ALIGNMENT });
|
|
132
|
+
};
|
|
133
|
+
exports.rawColumnToInternalColumn = rawColumnToInternalColumn;
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// ../../node_modules/simple-wcswidth/dist/src/non-spacing-chars.js
|
|
137
|
+
var require_non_spacing_chars = __commonJS((exports) => {
|
|
138
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
139
|
+
var combining = [
|
|
140
|
+
{ first: 768, last: 879 },
|
|
141
|
+
{ first: 1155, last: 1158 },
|
|
142
|
+
{ first: 1160, last: 1161 },
|
|
143
|
+
{ first: 1425, last: 1469 },
|
|
144
|
+
{ first: 1471, last: 1471 },
|
|
145
|
+
{ first: 1473, last: 1474 },
|
|
146
|
+
{ first: 1476, last: 1477 },
|
|
147
|
+
{ first: 1479, last: 1479 },
|
|
148
|
+
{ first: 1536, last: 1539 },
|
|
149
|
+
{ first: 1552, last: 1557 },
|
|
150
|
+
{ first: 1611, last: 1630 },
|
|
151
|
+
{ first: 1648, last: 1648 },
|
|
152
|
+
{ first: 1750, last: 1764 },
|
|
153
|
+
{ first: 1767, last: 1768 },
|
|
154
|
+
{ first: 1770, last: 1773 },
|
|
155
|
+
{ first: 1807, last: 1807 },
|
|
156
|
+
{ first: 1809, last: 1809 },
|
|
157
|
+
{ first: 1840, last: 1866 },
|
|
158
|
+
{ first: 1958, last: 1968 },
|
|
159
|
+
{ first: 2027, last: 2035 },
|
|
160
|
+
{ first: 2305, last: 2306 },
|
|
161
|
+
{ first: 2364, last: 2364 },
|
|
162
|
+
{ first: 2369, last: 2376 },
|
|
163
|
+
{ first: 2381, last: 2381 },
|
|
164
|
+
{ first: 2385, last: 2388 },
|
|
165
|
+
{ first: 2402, last: 2403 },
|
|
166
|
+
{ first: 2433, last: 2433 },
|
|
167
|
+
{ first: 2492, last: 2492 },
|
|
168
|
+
{ first: 2497, last: 2500 },
|
|
169
|
+
{ first: 2509, last: 2509 },
|
|
170
|
+
{ first: 2530, last: 2531 },
|
|
171
|
+
{ first: 2561, last: 2562 },
|
|
172
|
+
{ first: 2620, last: 2620 },
|
|
173
|
+
{ first: 2625, last: 2626 },
|
|
174
|
+
{ first: 2631, last: 2632 },
|
|
175
|
+
{ first: 2635, last: 2637 },
|
|
176
|
+
{ first: 2672, last: 2673 },
|
|
177
|
+
{ first: 2689, last: 2690 },
|
|
178
|
+
{ first: 2748, last: 2748 },
|
|
179
|
+
{ first: 2753, last: 2757 },
|
|
180
|
+
{ first: 2759, last: 2760 },
|
|
181
|
+
{ first: 2765, last: 2765 },
|
|
182
|
+
{ first: 2786, last: 2787 },
|
|
183
|
+
{ first: 2817, last: 2817 },
|
|
184
|
+
{ first: 2876, last: 2876 },
|
|
185
|
+
{ first: 2879, last: 2879 },
|
|
186
|
+
{ first: 2881, last: 2883 },
|
|
187
|
+
{ first: 2893, last: 2893 },
|
|
188
|
+
{ first: 2902, last: 2902 },
|
|
189
|
+
{ first: 2946, last: 2946 },
|
|
190
|
+
{ first: 3008, last: 3008 },
|
|
191
|
+
{ first: 3021, last: 3021 },
|
|
192
|
+
{ first: 3134, last: 3136 },
|
|
193
|
+
{ first: 3142, last: 3144 },
|
|
194
|
+
{ first: 3146, last: 3149 },
|
|
195
|
+
{ first: 3157, last: 3158 },
|
|
196
|
+
{ first: 3260, last: 3260 },
|
|
197
|
+
{ first: 3263, last: 3263 },
|
|
198
|
+
{ first: 3270, last: 3270 },
|
|
199
|
+
{ first: 3276, last: 3277 },
|
|
200
|
+
{ first: 3298, last: 3299 },
|
|
201
|
+
{ first: 3393, last: 3395 },
|
|
202
|
+
{ first: 3405, last: 3405 },
|
|
203
|
+
{ first: 3530, last: 3530 },
|
|
204
|
+
{ first: 3538, last: 3540 },
|
|
205
|
+
{ first: 3542, last: 3542 },
|
|
206
|
+
{ first: 3633, last: 3633 },
|
|
207
|
+
{ first: 3636, last: 3642 },
|
|
208
|
+
{ first: 3655, last: 3662 },
|
|
209
|
+
{ first: 3761, last: 3761 },
|
|
210
|
+
{ first: 3764, last: 3769 },
|
|
211
|
+
{ first: 3771, last: 3772 },
|
|
212
|
+
{ first: 3784, last: 3789 },
|
|
213
|
+
{ first: 3864, last: 3865 },
|
|
214
|
+
{ first: 3893, last: 3893 },
|
|
215
|
+
{ first: 3895, last: 3895 },
|
|
216
|
+
{ first: 3897, last: 3897 },
|
|
217
|
+
{ first: 3953, last: 3966 },
|
|
218
|
+
{ first: 3968, last: 3972 },
|
|
219
|
+
{ first: 3974, last: 3975 },
|
|
220
|
+
{ first: 3984, last: 3991 },
|
|
221
|
+
{ first: 3993, last: 4028 },
|
|
222
|
+
{ first: 4038, last: 4038 },
|
|
223
|
+
{ first: 4141, last: 4144 },
|
|
224
|
+
{ first: 4146, last: 4146 },
|
|
225
|
+
{ first: 4150, last: 4151 },
|
|
226
|
+
{ first: 4153, last: 4153 },
|
|
227
|
+
{ first: 4184, last: 4185 },
|
|
228
|
+
{ first: 4448, last: 4607 },
|
|
229
|
+
{ first: 4959, last: 4959 },
|
|
230
|
+
{ first: 5906, last: 5908 },
|
|
231
|
+
{ first: 5938, last: 5940 },
|
|
232
|
+
{ first: 5970, last: 5971 },
|
|
233
|
+
{ first: 6002, last: 6003 },
|
|
234
|
+
{ first: 6068, last: 6069 },
|
|
235
|
+
{ first: 6071, last: 6077 },
|
|
236
|
+
{ first: 6086, last: 6086 },
|
|
237
|
+
{ first: 6089, last: 6099 },
|
|
238
|
+
{ first: 6109, last: 6109 },
|
|
239
|
+
{ first: 6155, last: 6157 },
|
|
240
|
+
{ first: 6313, last: 6313 },
|
|
241
|
+
{ first: 6432, last: 6434 },
|
|
242
|
+
{ first: 6439, last: 6440 },
|
|
243
|
+
{ first: 6450, last: 6450 },
|
|
244
|
+
{ first: 6457, last: 6459 },
|
|
245
|
+
{ first: 6679, last: 6680 },
|
|
246
|
+
{ first: 6912, last: 6915 },
|
|
247
|
+
{ first: 6964, last: 6964 },
|
|
248
|
+
{ first: 6966, last: 6970 },
|
|
249
|
+
{ first: 6972, last: 6972 },
|
|
250
|
+
{ first: 6978, last: 6978 },
|
|
251
|
+
{ first: 7019, last: 7027 },
|
|
252
|
+
{ first: 7616, last: 7626 },
|
|
253
|
+
{ first: 7678, last: 7679 },
|
|
254
|
+
{ first: 8203, last: 8207 },
|
|
255
|
+
{ first: 8234, last: 8238 },
|
|
256
|
+
{ first: 8288, last: 8291 },
|
|
257
|
+
{ first: 8298, last: 8303 },
|
|
258
|
+
{ first: 8400, last: 8431 },
|
|
259
|
+
{ first: 12330, last: 12335 },
|
|
260
|
+
{ first: 12441, last: 12442 },
|
|
261
|
+
{ first: 43014, last: 43014 },
|
|
262
|
+
{ first: 43019, last: 43019 },
|
|
263
|
+
{ first: 43045, last: 43046 },
|
|
264
|
+
{ first: 64286, last: 64286 },
|
|
265
|
+
{ first: 65024, last: 65039 },
|
|
266
|
+
{ first: 65056, last: 65059 },
|
|
267
|
+
{ first: 65279, last: 65279 },
|
|
268
|
+
{ first: 65529, last: 65531 },
|
|
269
|
+
{ first: 68097, last: 68099 },
|
|
270
|
+
{ first: 68101, last: 68102 },
|
|
271
|
+
{ first: 68108, last: 68111 },
|
|
272
|
+
{ first: 68152, last: 68154 },
|
|
273
|
+
{ first: 68159, last: 68159 },
|
|
274
|
+
{ first: 119143, last: 119145 },
|
|
275
|
+
{ first: 119155, last: 119170 },
|
|
276
|
+
{ first: 119173, last: 119179 },
|
|
277
|
+
{ first: 119210, last: 119213 },
|
|
278
|
+
{ first: 119362, last: 119364 },
|
|
279
|
+
{ first: 917505, last: 917505 },
|
|
280
|
+
{ first: 917536, last: 917631 },
|
|
281
|
+
{ first: 917760, last: 917999 }
|
|
282
|
+
];
|
|
283
|
+
exports.default = combining;
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
// ../../node_modules/simple-wcswidth/dist/src/binary-search.js
|
|
287
|
+
var require_binary_search = __commonJS((exports) => {
|
|
288
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
289
|
+
var bisearch = (ucs, table, tableSize) => {
|
|
290
|
+
let min = 0;
|
|
291
|
+
let mid;
|
|
292
|
+
let max = tableSize;
|
|
293
|
+
if (ucs < table[0].first || ucs > table[max].last)
|
|
294
|
+
return 0;
|
|
295
|
+
while (max >= min) {
|
|
296
|
+
mid = Math.floor((min + max) / 2);
|
|
297
|
+
if (ucs > table[mid].last) {
|
|
298
|
+
min = mid + 1;
|
|
299
|
+
} else if (ucs < table[mid].first) {
|
|
300
|
+
max = mid - 1;
|
|
301
|
+
} else {
|
|
302
|
+
return 1;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return 0;
|
|
306
|
+
};
|
|
307
|
+
exports.default = bisearch;
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
// ../../node_modules/simple-wcswidth/dist/src/wcwidth.js
|
|
311
|
+
var require_wcwidth = __commonJS((exports) => {
|
|
312
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
313
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
314
|
+
};
|
|
315
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
316
|
+
var non_spacing_chars_1 = __importDefault(require_non_spacing_chars());
|
|
317
|
+
var binary_search_1 = __importDefault(require_binary_search());
|
|
318
|
+
var mk_wcwidth = (ucs) => {
|
|
319
|
+
if (ucs === 0) {
|
|
320
|
+
return 0;
|
|
321
|
+
}
|
|
322
|
+
if (ucs < 32 || ucs >= 127 && ucs < 160) {
|
|
323
|
+
return -1;
|
|
324
|
+
}
|
|
325
|
+
if (binary_search_1.default(ucs, non_spacing_chars_1.default, non_spacing_chars_1.default.length - 1)) {
|
|
326
|
+
return 0;
|
|
327
|
+
}
|
|
328
|
+
return 1 + Number(ucs >= 4352 && (ucs <= 4447 || ucs === 9001 || ucs === 9002 || ucs >= 11904 && ucs <= 42191 && ucs !== 12351 || ucs >= 44032 && ucs <= 55203 || ucs >= 63744 && ucs <= 64255 || ucs >= 65040 && ucs <= 65049 || ucs >= 65072 && ucs <= 65135 || ucs >= 65280 && ucs <= 65376 || ucs >= 65504 && ucs <= 65510 || ucs >= 131072 && ucs <= 196605 || ucs >= 196608 && ucs <= 262141));
|
|
329
|
+
};
|
|
330
|
+
exports.default = mk_wcwidth;
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
// ../../node_modules/simple-wcswidth/dist/src/wcswidth.js
|
|
334
|
+
var require_wcswidth = __commonJS((exports) => {
|
|
335
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
336
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
337
|
+
};
|
|
338
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
339
|
+
var wcwidth_1 = __importDefault(require_wcwidth());
|
|
340
|
+
var mk_wcswidth = (pwcs) => {
|
|
341
|
+
let width = 0;
|
|
342
|
+
for (let i = 0;i < pwcs.length; i++) {
|
|
343
|
+
const charCode = pwcs.charCodeAt(i);
|
|
344
|
+
const w = wcwidth_1.default(charCode);
|
|
345
|
+
if (w < 0) {
|
|
346
|
+
return -1;
|
|
347
|
+
}
|
|
348
|
+
width += w;
|
|
349
|
+
}
|
|
350
|
+
return width;
|
|
351
|
+
};
|
|
352
|
+
exports.default = mk_wcswidth;
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
// ../../node_modules/simple-wcswidth/dist/index.js
|
|
356
|
+
var require_dist = __commonJS((exports) => {
|
|
357
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
358
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
359
|
+
};
|
|
360
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
361
|
+
exports.wcswidth = exports.wcwidth = undefined;
|
|
362
|
+
var wcswidth_1 = __importDefault(require_wcswidth());
|
|
363
|
+
exports.wcswidth = wcswidth_1.default;
|
|
364
|
+
var wcwidth_1 = __importDefault(require_wcwidth());
|
|
365
|
+
exports.wcwidth = wcwidth_1.default;
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// ../../node_modules/console-table-printer/dist/src/utils/console-utils.js
|
|
369
|
+
var require_console_utils = __commonJS((exports) => {
|
|
370
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
371
|
+
exports.findWidthInConsole = exports.stripAnsi = undefined;
|
|
372
|
+
var simple_wcswidth_1 = require_dist();
|
|
373
|
+
var colorRegex = /\x1b\[\d{1,3}(;\d{1,3})*m/g;
|
|
374
|
+
var stripAnsi = (str) => str.replace(colorRegex, "");
|
|
375
|
+
exports.stripAnsi = stripAnsi;
|
|
376
|
+
var findWidthInConsole = (str, charLength) => {
|
|
377
|
+
let strLen = 0;
|
|
378
|
+
str = (0, exports.stripAnsi)(str);
|
|
379
|
+
if (charLength) {
|
|
380
|
+
Object.entries(charLength).forEach(([key, value]) => {
|
|
381
|
+
let regex = new RegExp(key, "g");
|
|
382
|
+
strLen += (str.match(regex) || []).length * value;
|
|
383
|
+
str = str.replace(key, "");
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
strLen += (0, simple_wcswidth_1.wcswidth)(str);
|
|
387
|
+
return strLen;
|
|
388
|
+
};
|
|
389
|
+
exports.findWidthInConsole = findWidthInConsole;
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
// ../../node_modules/console-table-printer/dist/src/utils/string-utils.js
|
|
393
|
+
var require_string_utils = __commonJS((exports) => {
|
|
394
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
395
|
+
exports.biggestWordInSentence = exports.textWithPadding = exports.splitTextIntoTextsOfMinLen = undefined;
|
|
396
|
+
var console_utils_1 = require_console_utils();
|
|
397
|
+
var splitTextIntoTextsOfMinLen = (inpStr, width, charLength) => {
|
|
398
|
+
const ret = [];
|
|
399
|
+
const lines = inpStr.split(/[\n\r]/);
|
|
400
|
+
lines.forEach((line) => {
|
|
401
|
+
const spaceSeparatedStrings = line.split(" ");
|
|
402
|
+
let now = [];
|
|
403
|
+
let cnt = 0;
|
|
404
|
+
spaceSeparatedStrings.forEach((strWithoutSpace) => {
|
|
405
|
+
const consoleWidth = (0, console_utils_1.findWidthInConsole)(strWithoutSpace, charLength);
|
|
406
|
+
if (cnt + consoleWidth <= width) {
|
|
407
|
+
cnt += consoleWidth + 1;
|
|
408
|
+
now.push(strWithoutSpace);
|
|
409
|
+
} else {
|
|
410
|
+
if (now.length > 0)
|
|
411
|
+
ret.push(now.join(" "));
|
|
412
|
+
now = [strWithoutSpace];
|
|
413
|
+
cnt = consoleWidth + 1;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
ret.push(now.join(" "));
|
|
417
|
+
});
|
|
418
|
+
return ret;
|
|
419
|
+
};
|
|
420
|
+
exports.splitTextIntoTextsOfMinLen = splitTextIntoTextsOfMinLen;
|
|
421
|
+
var textWithPadding = (text, alignment, columnLen, charLength) => {
|
|
422
|
+
const curTextSize = (0, console_utils_1.findWidthInConsole)(text, charLength);
|
|
423
|
+
const leftPadding = Math.floor((columnLen - curTextSize) / 2);
|
|
424
|
+
const rightPadding = columnLen - leftPadding - curTextSize;
|
|
425
|
+
if (columnLen < curTextSize) {
|
|
426
|
+
const splittedLines = (0, exports.splitTextIntoTextsOfMinLen)(text, columnLen);
|
|
427
|
+
if (splittedLines.length === 1) {
|
|
428
|
+
return text;
|
|
429
|
+
}
|
|
430
|
+
return splittedLines.map((singleLine) => (0, exports.textWithPadding)(singleLine, alignment, columnLen, charLength)).join(`
|
|
431
|
+
`);
|
|
432
|
+
}
|
|
433
|
+
switch (alignment) {
|
|
434
|
+
case "left":
|
|
435
|
+
return text.concat(" ".repeat(columnLen - curTextSize));
|
|
436
|
+
case "center":
|
|
437
|
+
return " ".repeat(leftPadding).concat(text).concat(" ".repeat(rightPadding));
|
|
438
|
+
case "right":
|
|
439
|
+
default:
|
|
440
|
+
return " ".repeat(columnLen - curTextSize).concat(text);
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
exports.textWithPadding = textWithPadding;
|
|
444
|
+
var biggestWordInSentence = (inpStr, charLength) => inpStr.split(" ").reduce((a, b) => Math.max(a, (0, console_utils_1.findWidthInConsole)(b, charLength)), 0);
|
|
445
|
+
exports.biggestWordInSentence = biggestWordInSentence;
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// ../../node_modules/console-table-printer/dist/src/utils/table-helpers.js
|
|
449
|
+
var require_table_helpers = __commonJS((exports) => {
|
|
450
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
451
|
+
exports.getWidthLimitedColumnsArray = exports.createHeaderAsRow = exports.renderTableHorizontalBorders = exports.findLenOfColumn = exports.createRow = exports.createColumFromComputedColumn = exports.createColumFromOnlyName = exports.createTableHorizontalBorders = exports.convertRawRowOptionsToStandard = exports.cellText = undefined;
|
|
452
|
+
var input_converter_1 = require_input_converter();
|
|
453
|
+
var console_utils_1 = require_console_utils();
|
|
454
|
+
var string_utils_1 = require_string_utils();
|
|
455
|
+
var table_constants_1 = require_table_constants();
|
|
456
|
+
var max = (a, b) => Math.max(a, b);
|
|
457
|
+
var cellText = (text) => text === undefined || text === null ? "" : `${text}`;
|
|
458
|
+
exports.cellText = cellText;
|
|
459
|
+
var convertRawRowOptionsToStandard = (options) => {
|
|
460
|
+
if (options) {
|
|
461
|
+
return {
|
|
462
|
+
color: options.color,
|
|
463
|
+
separator: options.separator || table_constants_1.DEFAULT_ROW_SEPARATOR
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
return;
|
|
467
|
+
};
|
|
468
|
+
exports.convertRawRowOptionsToStandard = convertRawRowOptionsToStandard;
|
|
469
|
+
var createTableHorizontalBorders = ({ left, mid, right, other }, column_lengths) => {
|
|
470
|
+
let ret = left;
|
|
471
|
+
column_lengths.forEach((len) => {
|
|
472
|
+
ret += other.repeat(len + 2);
|
|
473
|
+
ret += mid;
|
|
474
|
+
});
|
|
475
|
+
ret = ret.slice(0, -mid.length);
|
|
476
|
+
ret += right;
|
|
477
|
+
return ret;
|
|
478
|
+
};
|
|
479
|
+
exports.createTableHorizontalBorders = createTableHorizontalBorders;
|
|
480
|
+
var createColumFromOnlyName = (name) => ({
|
|
481
|
+
name,
|
|
482
|
+
title: name
|
|
483
|
+
});
|
|
484
|
+
exports.createColumFromOnlyName = createColumFromOnlyName;
|
|
485
|
+
var createColumFromComputedColumn = (column) => {
|
|
486
|
+
var _a;
|
|
487
|
+
return Object.assign(Object.assign(Object.assign(Object.assign({ name: column.name, title: (_a = column.title) !== null && _a !== undefined ? _a : column.name }, (0, input_converter_1.objIfExists)("color", column.color)), (0, input_converter_1.objIfExists)("maxLen", column.maxLen)), (0, input_converter_1.objIfExists)("minLen", column.minLen)), { alignment: column.alignment || table_constants_1.DEFAULT_ROW_ALIGNMENT });
|
|
488
|
+
};
|
|
489
|
+
exports.createColumFromComputedColumn = createColumFromComputedColumn;
|
|
490
|
+
var createRow = (color, text, separator) => ({
|
|
491
|
+
color,
|
|
492
|
+
separator,
|
|
493
|
+
text
|
|
494
|
+
});
|
|
495
|
+
exports.createRow = createRow;
|
|
496
|
+
var findLenOfColumn = (column, rows, charLength) => {
|
|
497
|
+
const columnId = column.name;
|
|
498
|
+
const columnTitle = column.title;
|
|
499
|
+
let length = max(0, (column === null || column === undefined ? undefined : column.minLen) || 0);
|
|
500
|
+
if (column.maxLen) {
|
|
501
|
+
length = max(length, max(column.maxLen, (0, string_utils_1.biggestWordInSentence)(columnTitle, charLength)));
|
|
502
|
+
length = rows.reduce((acc, row) => max(acc, (0, string_utils_1.biggestWordInSentence)((0, exports.cellText)(row.text[columnId]), charLength)), length);
|
|
503
|
+
return length;
|
|
504
|
+
}
|
|
505
|
+
length = max(length, (0, console_utils_1.findWidthInConsole)(columnTitle, charLength));
|
|
506
|
+
rows.forEach((row) => {
|
|
507
|
+
length = max(length, (0, console_utils_1.findWidthInConsole)((0, exports.cellText)(row.text[columnId]), charLength));
|
|
508
|
+
});
|
|
509
|
+
return length;
|
|
510
|
+
};
|
|
511
|
+
exports.findLenOfColumn = findLenOfColumn;
|
|
512
|
+
var renderTableHorizontalBorders = (style, column_lengths) => {
|
|
513
|
+
const str = (0, exports.createTableHorizontalBorders)(style, column_lengths);
|
|
514
|
+
return str;
|
|
515
|
+
};
|
|
516
|
+
exports.renderTableHorizontalBorders = renderTableHorizontalBorders;
|
|
517
|
+
var createHeaderAsRow = (createRowFn, columns) => {
|
|
518
|
+
const headerColor = table_constants_1.DEFAULT_HEADER_FONT_COLOR;
|
|
519
|
+
const row = createRowFn(headerColor, {}, false);
|
|
520
|
+
columns.forEach((column) => {
|
|
521
|
+
row.text[column.name] = column.title;
|
|
522
|
+
});
|
|
523
|
+
return row;
|
|
524
|
+
};
|
|
525
|
+
exports.createHeaderAsRow = createHeaderAsRow;
|
|
526
|
+
var getWidthLimitedColumnsArray = (columns, row, charLength) => {
|
|
527
|
+
const ret = {};
|
|
528
|
+
columns.forEach((column) => {
|
|
529
|
+
ret[column.name] = (0, string_utils_1.splitTextIntoTextsOfMinLen)((0, exports.cellText)(row.text[column.name]), column.length || table_constants_1.DEFAULT_COLUMN_LEN, charLength);
|
|
530
|
+
});
|
|
531
|
+
return ret;
|
|
532
|
+
};
|
|
533
|
+
exports.getWidthLimitedColumnsArray = getWidthLimitedColumnsArray;
|
|
534
|
+
});
|
|
535
|
+
|
|
536
|
+
// ../../node_modules/console-table-printer/dist/src/internalTable/table-pre-processors.js
|
|
537
|
+
var require_table_pre_processors = __commonJS((exports) => {
|
|
538
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
539
|
+
exports.preProcessRows = exports.preProcessColumns = undefined;
|
|
540
|
+
var table_helpers_1 = require_table_helpers();
|
|
541
|
+
var createComputedColumnsIfNecessary = (table) => {
|
|
542
|
+
if (table.computedColumns.length) {
|
|
543
|
+
table.computedColumns.forEach((computedColumn) => {
|
|
544
|
+
table.addColumn(computedColumn);
|
|
545
|
+
table.rows.forEach((row) => {
|
|
546
|
+
row.text[computedColumn.name] = computedColumn.function(row.text);
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var disableColumnsIfNecessary = (table) => {
|
|
552
|
+
if (table.enabledColumns.length) {
|
|
553
|
+
table.columns = table.columns.filter((col) => table.enabledColumns.includes(col.name));
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
var enableColumnsIfNecessary = (table) => {
|
|
557
|
+
if (table.disabledColumns.length) {
|
|
558
|
+
table.columns = table.columns.filter((col) => !table.disabledColumns.includes(col.name));
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
var findColumnWidth = (table) => {
|
|
562
|
+
table.columns.forEach((column) => {
|
|
563
|
+
column.length = (0, table_helpers_1.findLenOfColumn)(column, table.rows, table.charLength);
|
|
564
|
+
});
|
|
565
|
+
};
|
|
566
|
+
var preProcessColumns = (table) => {
|
|
567
|
+
createComputedColumnsIfNecessary(table);
|
|
568
|
+
enableColumnsIfNecessary(table);
|
|
569
|
+
disableColumnsIfNecessary(table);
|
|
570
|
+
findColumnWidth(table);
|
|
571
|
+
};
|
|
572
|
+
exports.preProcessColumns = preProcessColumns;
|
|
573
|
+
var preProcessRows = (table) => {
|
|
574
|
+
const newRows = table.rows.filter((r) => table.filterFunction(r.text)).sort((r1, r2) => table.sortFunction(r1.text, r2.text));
|
|
575
|
+
table.rows = newRows;
|
|
576
|
+
};
|
|
577
|
+
exports.preProcessRows = preProcessRows;
|
|
578
|
+
});
|
|
579
|
+
|
|
580
|
+
// ../../node_modules/console-table-printer/dist/src/internalTable/internal-table-printer.js
|
|
581
|
+
var require_internal_table_printer = __commonJS((exports) => {
|
|
582
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
583
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
584
|
+
};
|
|
585
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
586
|
+
exports.printSimpleTable = exports.renderSimpleTable = exports.renderTable = undefined;
|
|
587
|
+
var colored_console_line_1 = __importDefault(require_colored_console_line());
|
|
588
|
+
var string_utils_1 = require_string_utils();
|
|
589
|
+
var table_constants_1 = require_table_constants();
|
|
590
|
+
var table_helpers_1 = require_table_helpers();
|
|
591
|
+
var internal_table_1 = __importDefault(require_internal_table());
|
|
592
|
+
var table_pre_processors_1 = require_table_pre_processors();
|
|
593
|
+
var renderOneLine = (tableStyle, columns, currentLineIndex, widthLimitedColumnsArray, isHeader, row, colorMap, charLength) => {
|
|
594
|
+
const line = new colored_console_line_1.default(colorMap);
|
|
595
|
+
line.addCharsWithColor("", tableStyle.vertical);
|
|
596
|
+
columns.forEach((column) => {
|
|
597
|
+
const thisLineHasText = currentLineIndex < widthLimitedColumnsArray[column.name].length;
|
|
598
|
+
const textForThisLine = thisLineHasText ? (0, table_helpers_1.cellText)(widthLimitedColumnsArray[column.name][currentLineIndex]) : "";
|
|
599
|
+
line.addCharsWithColor(table_constants_1.DEFAULT_ROW_FONT_COLOR, " ");
|
|
600
|
+
line.addCharsWithColor(isHeader && table_constants_1.DEFAULT_HEADER_FONT_COLOR || column.color || row.color, (0, string_utils_1.textWithPadding)(textForThisLine, column.alignment || table_constants_1.DEFAULT_ROW_ALIGNMENT, column.length || table_constants_1.DEFAULT_COLUMN_LEN, charLength));
|
|
601
|
+
line.addCharsWithColor("", ` ${tableStyle.vertical}`);
|
|
602
|
+
});
|
|
603
|
+
return line.renderConsole();
|
|
604
|
+
};
|
|
605
|
+
var renderWidthLimitedLines = (tableStyle, columns, row, colorMap, isHeader, charLength) => {
|
|
606
|
+
const widthLimitedColumnsArray = (0, table_helpers_1.getWidthLimitedColumnsArray)(columns, row, charLength);
|
|
607
|
+
const totalLines = Object.values(widthLimitedColumnsArray).reduce((a, b) => Math.max(a, b.length), 0);
|
|
608
|
+
const ret = [];
|
|
609
|
+
for (let currentLineIndex = 0;currentLineIndex < totalLines; currentLineIndex += 1) {
|
|
610
|
+
const singleLine = renderOneLine(tableStyle, columns, currentLineIndex, widthLimitedColumnsArray, isHeader, row, colorMap, charLength);
|
|
611
|
+
ret.push(singleLine);
|
|
612
|
+
}
|
|
613
|
+
return ret;
|
|
614
|
+
};
|
|
615
|
+
var renderRow = (table, row) => {
|
|
616
|
+
let ret = [];
|
|
617
|
+
ret = ret.concat(renderWidthLimitedLines(table.tableStyle, table.columns, row, table.colorMap, undefined, table.charLength));
|
|
618
|
+
return ret;
|
|
619
|
+
};
|
|
620
|
+
var renderTableTitle = (table) => {
|
|
621
|
+
const ret = [];
|
|
622
|
+
if (table.title === undefined) {
|
|
623
|
+
return ret;
|
|
624
|
+
}
|
|
625
|
+
const getTableWidth = () => {
|
|
626
|
+
const reducer = (accumulator, currentValue) => accumulator + currentValue + 2 + 1;
|
|
627
|
+
return table.columns.map((m) => m.length || table_constants_1.DEFAULT_COLUMN_LEN).reduce(reducer, 1);
|
|
628
|
+
};
|
|
629
|
+
const titleWithPadding = (0, string_utils_1.textWithPadding)(table.title, table_constants_1.DEFAULT_HEADER_ALIGNMENT, getTableWidth());
|
|
630
|
+
const styledText = new colored_console_line_1.default(table.colorMap);
|
|
631
|
+
styledText.addCharsWithColor(table_constants_1.DEFAULT_HEADER_FONT_COLOR, titleWithPadding);
|
|
632
|
+
ret.push(styledText.renderConsole());
|
|
633
|
+
return ret;
|
|
634
|
+
};
|
|
635
|
+
var renderTableHeaders = (table) => {
|
|
636
|
+
let ret = [];
|
|
637
|
+
ret.push((0, table_helpers_1.renderTableHorizontalBorders)(table.tableStyle.headerTop, table.columns.map((m) => m.length || table_constants_1.DEFAULT_COLUMN_LEN)));
|
|
638
|
+
const row = (0, table_helpers_1.createHeaderAsRow)(table_helpers_1.createRow, table.columns);
|
|
639
|
+
ret = ret.concat(renderWidthLimitedLines(table.tableStyle, table.columns, row, table.colorMap, true));
|
|
640
|
+
ret.push((0, table_helpers_1.renderTableHorizontalBorders)(table.tableStyle.headerBottom, table.columns.map((m) => m.length || table_constants_1.DEFAULT_COLUMN_LEN)));
|
|
641
|
+
return ret;
|
|
642
|
+
};
|
|
643
|
+
var renderTableEnding = (table) => {
|
|
644
|
+
const ret = [];
|
|
645
|
+
ret.push((0, table_helpers_1.renderTableHorizontalBorders)(table.tableStyle.tableBottom, table.columns.map((m) => m.length || table_constants_1.DEFAULT_COLUMN_LEN)));
|
|
646
|
+
return ret;
|
|
647
|
+
};
|
|
648
|
+
var renderRowSeparator = (table, row) => {
|
|
649
|
+
const ret = [];
|
|
650
|
+
const lastRowIndex = table.rows.length - 1;
|
|
651
|
+
const currentRowIndex = table.rows.indexOf(row);
|
|
652
|
+
if (currentRowIndex !== lastRowIndex && row.separator) {
|
|
653
|
+
ret.push((0, table_helpers_1.renderTableHorizontalBorders)(table.tableStyle.rowSeparator, table.columns.map((m) => m.length || table_constants_1.DEFAULT_COLUMN_LEN)));
|
|
654
|
+
}
|
|
655
|
+
return ret;
|
|
656
|
+
};
|
|
657
|
+
var renderTable = (table) => {
|
|
658
|
+
(0, table_pre_processors_1.preProcessColumns)(table);
|
|
659
|
+
(0, table_pre_processors_1.preProcessRows)(table);
|
|
660
|
+
const ret = [];
|
|
661
|
+
renderTableTitle(table).forEach((row) => ret.push(row));
|
|
662
|
+
renderTableHeaders(table).forEach((row) => ret.push(row));
|
|
663
|
+
table.rows.forEach((row) => {
|
|
664
|
+
renderRow(table, row).forEach((row_) => ret.push(row_));
|
|
665
|
+
renderRowSeparator(table, row).forEach((row_) => ret.push(row_));
|
|
666
|
+
});
|
|
667
|
+
renderTableEnding(table).forEach((row) => ret.push(row));
|
|
668
|
+
return ret.join(`
|
|
669
|
+
`);
|
|
670
|
+
};
|
|
671
|
+
exports.renderTable = renderTable;
|
|
672
|
+
var renderSimpleTable = (rows) => {
|
|
673
|
+
const table = new internal_table_1.default;
|
|
674
|
+
table.addRows(rows);
|
|
675
|
+
return (0, exports.renderTable)(table);
|
|
676
|
+
};
|
|
677
|
+
exports.renderSimpleTable = renderSimpleTable;
|
|
678
|
+
var printSimpleTable = (rows) => {
|
|
679
|
+
console.log((0, exports.renderSimpleTable)(rows));
|
|
680
|
+
};
|
|
681
|
+
exports.printSimpleTable = printSimpleTable;
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
// ../../node_modules/console-table-printer/dist/src/internalTable/internal-table.js
|
|
685
|
+
var require_internal_table = __commonJS((exports) => {
|
|
686
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
687
|
+
var colored_console_line_1 = require_colored_console_line();
|
|
688
|
+
var table_constants_1 = require_table_constants();
|
|
689
|
+
var table_helpers_1 = require_table_helpers();
|
|
690
|
+
var input_converter_1 = require_input_converter();
|
|
691
|
+
var internal_table_printer_1 = require_internal_table_printer();
|
|
692
|
+
var DEFAULT_ROW_SORT_FUNC = () => 0;
|
|
693
|
+
var DEFAULT_ROW_FILTER_FUNC = () => true;
|
|
694
|
+
|
|
695
|
+
class TableInternal {
|
|
696
|
+
initSimple(columns) {
|
|
697
|
+
this.columns = columns.map((column) => ({
|
|
698
|
+
name: column,
|
|
699
|
+
title: column,
|
|
700
|
+
alignment: table_constants_1.DEFAULT_ROW_ALIGNMENT
|
|
701
|
+
}));
|
|
702
|
+
}
|
|
703
|
+
initDetailed(options) {
|
|
704
|
+
var _a;
|
|
705
|
+
this.title = (options === null || options === undefined ? undefined : options.title) || this.title;
|
|
706
|
+
this.tableStyle = (options === null || options === undefined ? undefined : options.style) || this.tableStyle;
|
|
707
|
+
this.sortFunction = (options === null || options === undefined ? undefined : options.sort) || this.sortFunction;
|
|
708
|
+
this.filterFunction = (options === null || options === undefined ? undefined : options.filter) || this.filterFunction;
|
|
709
|
+
this.enabledColumns = (options === null || options === undefined ? undefined : options.enabledColumns) || this.enabledColumns;
|
|
710
|
+
this.disabledColumns = (options === null || options === undefined ? undefined : options.disabledColumns) || this.disabledColumns;
|
|
711
|
+
this.computedColumns = (options === null || options === undefined ? undefined : options.computedColumns) || this.computedColumns;
|
|
712
|
+
this.columns = ((_a = options === null || options === undefined ? undefined : options.columns) === null || _a === undefined ? undefined : _a.map(input_converter_1.rawColumnToInternalColumn)) || this.columns;
|
|
713
|
+
this.rowSeparator = (options === null || options === undefined ? undefined : options.rowSeparator) || this.rowSeparator;
|
|
714
|
+
this.charLength = (options === null || options === undefined ? undefined : options.charLength) || this.charLength;
|
|
715
|
+
if (options === null || options === undefined ? undefined : options.shouldDisableColors) {
|
|
716
|
+
this.colorMap = {};
|
|
717
|
+
} else if (options === null || options === undefined ? undefined : options.colorMap) {
|
|
718
|
+
this.colorMap = Object.assign(Object.assign({}, this.colorMap), options.colorMap);
|
|
719
|
+
}
|
|
720
|
+
if (options.rows !== undefined) {
|
|
721
|
+
this.addRows(options.rows);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
constructor(options) {
|
|
725
|
+
this.rows = [];
|
|
726
|
+
this.columns = [];
|
|
727
|
+
this.title = undefined;
|
|
728
|
+
this.tableStyle = table_constants_1.DEFAULT_TABLE_STYLE;
|
|
729
|
+
this.filterFunction = DEFAULT_ROW_FILTER_FUNC;
|
|
730
|
+
this.sortFunction = DEFAULT_ROW_SORT_FUNC;
|
|
731
|
+
this.enabledColumns = [];
|
|
732
|
+
this.disabledColumns = [];
|
|
733
|
+
this.computedColumns = [];
|
|
734
|
+
this.rowSeparator = table_constants_1.DEFAULT_ROW_SEPARATOR;
|
|
735
|
+
this.colorMap = colored_console_line_1.DEFAULT_COLOR_MAP;
|
|
736
|
+
this.charLength = {};
|
|
737
|
+
if (options instanceof Array) {
|
|
738
|
+
this.initSimple(options);
|
|
739
|
+
} else if (typeof options === "object") {
|
|
740
|
+
this.initDetailed(options);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
createColumnFromRow(text) {
|
|
744
|
+
const colNames = this.columns.map((col) => col.name);
|
|
745
|
+
Object.keys(text).forEach((key) => {
|
|
746
|
+
if (!colNames.includes(key)) {
|
|
747
|
+
this.columns.push((0, table_helpers_1.createColumFromOnlyName)(key));
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
addColumn(textOrObj) {
|
|
752
|
+
if (typeof textOrObj === "string") {
|
|
753
|
+
this.columns.push((0, table_helpers_1.createColumFromOnlyName)(textOrObj));
|
|
754
|
+
} else {
|
|
755
|
+
this.columns.push((0, table_helpers_1.createColumFromComputedColumn)(textOrObj));
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
addColumns(toBeInsertedColumns) {
|
|
759
|
+
toBeInsertedColumns.forEach((toBeInsertedColumn) => {
|
|
760
|
+
this.addColumn(toBeInsertedColumn);
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
addRow(text, options) {
|
|
764
|
+
this.createColumnFromRow(text);
|
|
765
|
+
this.rows.push((0, table_helpers_1.createRow)((options === null || options === undefined ? undefined : options.color) || table_constants_1.DEFAULT_ROW_FONT_COLOR, text, (options === null || options === undefined ? undefined : options.separator) !== undefined ? options === null || options === undefined ? undefined : options.separator : this.rowSeparator));
|
|
766
|
+
}
|
|
767
|
+
addRows(toBeInsertedRows, options) {
|
|
768
|
+
toBeInsertedRows.forEach((toBeInsertedRow) => {
|
|
769
|
+
this.addRow(toBeInsertedRow, options);
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
renderTable() {
|
|
773
|
+
return (0, internal_table_printer_1.renderTable)(this);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
exports.default = TableInternal;
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
// ../../node_modules/console-table-printer/dist/src/console-table-printer.js
|
|
780
|
+
var require_console_table_printer = __commonJS((exports) => {
|
|
781
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
782
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
783
|
+
};
|
|
784
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
785
|
+
var internal_table_1 = __importDefault(require_internal_table());
|
|
786
|
+
var table_helpers_1 = require_table_helpers();
|
|
787
|
+
|
|
788
|
+
class Table {
|
|
789
|
+
constructor(options) {
|
|
790
|
+
this.table = new internal_table_1.default(options);
|
|
791
|
+
}
|
|
792
|
+
addColumn(column) {
|
|
793
|
+
this.table.addColumn(column);
|
|
794
|
+
return this;
|
|
795
|
+
}
|
|
796
|
+
addColumns(columns) {
|
|
797
|
+
this.table.addColumns(columns);
|
|
798
|
+
return this;
|
|
799
|
+
}
|
|
800
|
+
addRow(text, rowOptions) {
|
|
801
|
+
this.table.addRow(text, (0, table_helpers_1.convertRawRowOptionsToStandard)(rowOptions));
|
|
802
|
+
return this;
|
|
803
|
+
}
|
|
804
|
+
addRows(toBeInsertedRows, rowOptions) {
|
|
805
|
+
this.table.addRows(toBeInsertedRows, (0, table_helpers_1.convertRawRowOptionsToStandard)(rowOptions));
|
|
806
|
+
return this;
|
|
807
|
+
}
|
|
808
|
+
printTable() {
|
|
809
|
+
const tableRendered = this.table.renderTable();
|
|
810
|
+
console.log(tableRendered);
|
|
811
|
+
}
|
|
812
|
+
render() {
|
|
813
|
+
return this.table.renderTable();
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
exports.default = Table;
|
|
817
|
+
});
|
|
818
|
+
|
|
819
|
+
// ../../node_modules/console-table-printer/dist/index.js
|
|
820
|
+
var require_dist2 = __commonJS((exports) => {
|
|
821
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
822
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
823
|
+
};
|
|
824
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
825
|
+
exports.renderTable = exports.printTable = exports.Table = undefined;
|
|
826
|
+
var console_table_printer_1 = __importDefault(require_console_table_printer());
|
|
827
|
+
exports.Table = console_table_printer_1.default;
|
|
828
|
+
var internal_table_printer_1 = require_internal_table_printer();
|
|
829
|
+
Object.defineProperty(exports, "printTable", { enumerable: true, get: function() {
|
|
830
|
+
return internal_table_printer_1.printSimpleTable;
|
|
831
|
+
} });
|
|
832
|
+
Object.defineProperty(exports, "renderTable", { enumerable: true, get: function() {
|
|
833
|
+
return internal_table_printer_1.renderSimpleTable;
|
|
834
|
+
} });
|
|
835
|
+
});
|
|
836
|
+
|
|
32
837
|
// ../../node_modules/@dotenvx/dotenvx/package.json
|
|
33
838
|
var require_package = __commonJS((exports, module) => {
|
|
34
839
|
module.exports = {
|
|
@@ -2422,7 +3227,7 @@ var require_types = __commonJS((exports) => {
|
|
|
2422
3227
|
});
|
|
2423
3228
|
|
|
2424
3229
|
// ../../node_modules/fdir/dist/index.js
|
|
2425
|
-
var
|
|
3230
|
+
var require_dist3 = __commonJS((exports) => {
|
|
2426
3231
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
2427
3232
|
if (k2 === undefined)
|
|
2428
3233
|
k2 = k;
|
|
@@ -2454,7 +3259,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
2454
3259
|
|
|
2455
3260
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/services/ls.js
|
|
2456
3261
|
var require_ls = __commonJS((exports, module) => {
|
|
2457
|
-
var { fdir: Fdir } =
|
|
3262
|
+
var { fdir: Fdir } = require_dist3();
|
|
2458
3263
|
var path = __require("path");
|
|
2459
3264
|
var picomatch = require_picomatch2();
|
|
2460
3265
|
|
|
@@ -8457,7 +9262,7 @@ var require_keys = __commonJS((exports) => {
|
|
|
8457
9262
|
});
|
|
8458
9263
|
|
|
8459
9264
|
// ../../node_modules/eciesjs/dist/index.js
|
|
8460
|
-
var
|
|
9265
|
+
var require_dist4 = __commonJS((exports) => {
|
|
8461
9266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8462
9267
|
exports.utils = exports.PublicKey = exports.PrivateKey = exports.ECIES_CONFIG = undefined;
|
|
8463
9268
|
exports.encrypt = encrypt;
|
|
@@ -8601,7 +9406,7 @@ var require_errors = __commonJS((exports, module) => {
|
|
|
8601
9406
|
|
|
8602
9407
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/decryptKeyValue.js
|
|
8603
9408
|
var require_decryptKeyValue = __commonJS((exports, module) => {
|
|
8604
|
-
var { decrypt } =
|
|
9409
|
+
var { decrypt } = require_dist4();
|
|
8605
9410
|
var Errors = require_errors();
|
|
8606
9411
|
var PREFIX = "encrypted:";
|
|
8607
9412
|
function decryptKeyValue(key, value, privateKeyName, privateKey) {
|
|
@@ -9362,7 +10167,7 @@ var require_run = __commonJS((exports, module) => {
|
|
|
9362
10167
|
|
|
9363
10168
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/encryptValue.js
|
|
9364
10169
|
var require_encryptValue = __commonJS((exports, module) => {
|
|
9365
|
-
var { encrypt } =
|
|
10170
|
+
var { encrypt } = require_dist4();
|
|
9366
10171
|
var PREFIX = "encrypted:";
|
|
9367
10172
|
function encryptValue(value, publicKey) {
|
|
9368
10173
|
const ciphertext = encrypt(publicKey, Buffer.from(value));
|
|
@@ -9470,7 +10275,7 @@ var require_findPublicKey = __commonJS((exports, module) => {
|
|
|
9470
10275
|
|
|
9471
10276
|
// ../../node_modules/@dotenvx/dotenvx/src/lib/helpers/keypair.js
|
|
9472
10277
|
var require_keypair2 = __commonJS((exports, module) => {
|
|
9473
|
-
var { PrivateKey } =
|
|
10278
|
+
var { PrivateKey } = require_dist4();
|
|
9474
10279
|
function keypair(existingPrivateKey) {
|
|
9475
10280
|
let kp;
|
|
9476
10281
|
if (existingPrivateKey) {
|
|
@@ -12814,7 +13619,7 @@ var require_source_map_generator = __commonJS((exports) => {
|
|
|
12814
13619
|
});
|
|
12815
13620
|
|
|
12816
13621
|
// ../../node_modules/source-map-support/node_modules/source-map/lib/binary-search.js
|
|
12817
|
-
var
|
|
13622
|
+
var require_binary_search2 = __commonJS((exports) => {
|
|
12818
13623
|
exports.GREATEST_LOWER_BOUND = 1;
|
|
12819
13624
|
exports.LEAST_UPPER_BOUND = 2;
|
|
12820
13625
|
function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
|
|
@@ -12896,7 +13701,7 @@ var require_quick_sort = __commonJS((exports) => {
|
|
|
12896
13701
|
// ../../node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js
|
|
12897
13702
|
var require_source_map_consumer = __commonJS((exports) => {
|
|
12898
13703
|
var util2 = require_util();
|
|
12899
|
-
var binarySearch =
|
|
13704
|
+
var binarySearch = require_binary_search2();
|
|
12900
13705
|
var ArraySet = require_array_set().ArraySet;
|
|
12901
13706
|
var base64VLQ = require_base64_vlq();
|
|
12902
13707
|
var quickSort = require_quick_sort().quickSort;
|
|
@@ -209465,7 +210270,7 @@ ${Bt.cyan(Yt)}
|
|
|
209465
210270
|
code: "ENOENT"
|
|
209466
210271
|
}), getPathInfo = (e9, t7) => {
|
|
209467
210272
|
var r6 = t7.colon || or;
|
|
209468
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
210273
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.bcwUjCHrha:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
209469
210274
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
209470
210275
|
var a5 = nr ? n6.split(r6) : [""];
|
|
209471
210276
|
if (nr) {
|
|
@@ -212602,7 +213407,7 @@ ${whileRunning(e9)}`;
|
|
|
212602
213407
|
};
|
|
212603
213408
|
ni = Object.assign(async function _main() {
|
|
212604
213409
|
var e9 = new Cli({
|
|
212605
|
-
binaryVersion: "1.0.8-
|
|
213410
|
+
binaryVersion: "1.0.8-pr0d10ee09",
|
|
212606
213411
|
binaryLabel: "gql.tada CLI",
|
|
212607
213412
|
binaryName: "gql.tada"
|
|
212608
213413
|
});
|
|
@@ -220192,7 +220997,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
220192
220997
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
220193
220998
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
220194
220999
|
var getPathInfo2 = (cmd2, {
|
|
220195
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
221000
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.bcwUjCHrha:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
220196
221001
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
220197
221002
|
delimiter: optDelimiter = delimiter
|
|
220198
221003
|
}) => {
|
|
@@ -220396,7 +221201,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
220396
221201
|
let pathToInitial;
|
|
220397
221202
|
try {
|
|
220398
221203
|
pathToInitial = which.sync(initialCmd, {
|
|
220399
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
221204
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.bcwUjCHrha:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
220400
221205
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
220401
221206
|
}).toLowerCase();
|
|
220402
221207
|
} catch (err) {
|
|
@@ -221113,7 +221918,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
221113
221918
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
221114
221919
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
221115
221920
|
var getPathInfo2 = (cmd2, {
|
|
221116
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
221921
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.bcwUjCHrha:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
221117
221922
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
221118
221923
|
delimiter: optDelimiter = delimiter
|
|
221119
221924
|
}) => {
|
|
@@ -234988,7 +235793,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
234988
235793
|
const colon = opt2.colon || COLON;
|
|
234989
235794
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
234990
235795
|
...isWindows2 ? [process.cwd()] : [],
|
|
234991
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
235796
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.13.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.bcwUjCHrha:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
234992
235797
|
];
|
|
234993
235798
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
234994
235799
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -240746,7 +241551,7 @@ Content-Type: ${R6.type || "application/octet-stream"}\r
|
|
|
240746
241551
|
});
|
|
240747
241552
|
|
|
240748
241553
|
// ../../node_modules/node-fetch-native/dist/index.cjs
|
|
240749
|
-
var
|
|
241554
|
+
var require_dist5 = __commonJS((exports) => {
|
|
240750
241555
|
var i6 = Object.defineProperty;
|
|
240751
241556
|
var l4 = (r6, t8) => i6(r6, "name", { value: t8, configurable: true });
|
|
240752
241557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -240772,7 +241577,7 @@ var require_dist3 = __commonJS((exports) => {
|
|
|
240772
241577
|
|
|
240773
241578
|
// ../../node_modules/node-fetch-native/lib/index.cjs
|
|
240774
241579
|
var require_lib14 = __commonJS((exports, module) => {
|
|
240775
|
-
var nodeFetch =
|
|
241580
|
+
var nodeFetch = require_dist5();
|
|
240776
241581
|
function fetch2(input, options) {
|
|
240777
241582
|
return nodeFetch.fetch(input, options);
|
|
240778
241583
|
}
|
|
@@ -256745,7 +257550,7 @@ function yoctoSpinner(options) {
|
|
|
256745
257550
|
}
|
|
256746
257551
|
|
|
256747
257552
|
// ../utils/dist/environment.mjs
|
|
256748
|
-
|
|
257553
|
+
var import_console_table_printer = __toESM(require_dist2(), 1);
|
|
256749
257554
|
|
|
256750
257555
|
// ../../node_modules/zod/lib/index.mjs
|
|
256751
257556
|
var util;
|
|
@@ -267180,13 +267985,11 @@ function mergeOthers(values, utils, meta) {
|
|
|
267180
267985
|
var maskTokens = (output) => {
|
|
267181
267986
|
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267182
267987
|
};
|
|
267183
|
-
var CancelError = class extends Error {
|
|
267184
|
-
};
|
|
267185
267988
|
var cancel = (msg) => {
|
|
267186
267989
|
console.log("");
|
|
267187
267990
|
console.log(inverse(redBright(maskTokens(msg))));
|
|
267188
267991
|
console.log("");
|
|
267189
|
-
|
|
267992
|
+
process.exit(1);
|
|
267190
267993
|
};
|
|
267191
267994
|
function validate(schema, value) {
|
|
267192
267995
|
try {
|
|
@@ -267472,7 +268275,7 @@ var {
|
|
|
267472
268275
|
|
|
267473
268276
|
// ../utils/dist/terminal.mjs
|
|
267474
268277
|
import { spawn } from "node:child_process";
|
|
267475
|
-
|
|
268278
|
+
var import_console_table_printer2 = __toESM(require_dist2(), 1);
|
|
267476
268279
|
var ascii = () => console.log(magentaBright(`
|
|
267477
268280
|
_________ __ __ .__ _____ .__ __
|
|
267478
268281
|
/ _____/ _____/ |__/ |_| | ____ / \\ |__| _____/ |_
|
|
@@ -267483,13 +268286,11 @@ var ascii = () => console.log(magentaBright(`
|
|
|
267483
268286
|
var maskTokens2 = (output) => {
|
|
267484
268287
|
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
|
267485
268288
|
};
|
|
267486
|
-
var CancelError2 = class extends Error {
|
|
267487
|
-
};
|
|
267488
268289
|
var cancel2 = (msg) => {
|
|
267489
268290
|
console.log("");
|
|
267490
268291
|
console.log(inverse(redBright(maskTokens2(msg))));
|
|
267491
268292
|
console.log("");
|
|
267492
|
-
|
|
268293
|
+
process.exit(1);
|
|
267493
268294
|
};
|
|
267494
268295
|
async function executeCommand(command, args, options) {
|
|
267495
268296
|
const child = spawn(command, args, { env: { ...process.env, ...options?.env } });
|
|
@@ -267566,11 +268367,10 @@ var spinner = async (options) => {
|
|
|
267566
268367
|
return result;
|
|
267567
268368
|
} catch (error) {
|
|
267568
268369
|
spinner2.error(redBright(`${options.startMessage} --> Error!`));
|
|
267569
|
-
|
|
267570
|
-
note(redBright(`${errorMessage}
|
|
268370
|
+
note(redBright(`${error.message}
|
|
267571
268371
|
|
|
267572
268372
|
${error.stack}`));
|
|
267573
|
-
|
|
268373
|
+
process.exit(1);
|
|
267574
268374
|
}
|
|
267575
268375
|
};
|
|
267576
268376
|
function capitalizeFirstLetter(val) {
|
|
@@ -267582,31 +268382,28 @@ function camelCaseToWords(s) {
|
|
|
267582
268382
|
const capitalized = capitalizeFirstLetter(withSpaces);
|
|
267583
268383
|
return capitalized.replace(/\s+/g, " ").trim();
|
|
267584
268384
|
}
|
|
267585
|
-
function table(title, data
|
|
268385
|
+
function table(title, data) {
|
|
267586
268386
|
note(title);
|
|
267587
268387
|
if (!data || data.length === 0) {
|
|
267588
268388
|
note("No data to display");
|
|
267589
268389
|
return;
|
|
267590
268390
|
}
|
|
267591
268391
|
const columnKeys = Object.keys(data[0]);
|
|
267592
|
-
const
|
|
267593
|
-
|
|
267594
|
-
|
|
267595
|
-
|
|
267596
|
-
|
|
267597
|
-
|
|
267598
|
-
})
|
|
267599
|
-
|
|
267600
|
-
|
|
267601
|
-
};
|
|
267602
|
-
const ttyTable = TTYTable2(headers, data, config3);
|
|
267603
|
-
console.log(ttyTable.render());
|
|
268392
|
+
const table2 = new import_console_table_printer2.Table({
|
|
268393
|
+
columns: columnKeys.map((key) => ({
|
|
268394
|
+
name: key,
|
|
268395
|
+
title: whiteBright(camelCaseToWords(key)),
|
|
268396
|
+
alignment: "left"
|
|
268397
|
+
}))
|
|
268398
|
+
});
|
|
268399
|
+
table2.addRows(data);
|
|
268400
|
+
table2.printTable();
|
|
267604
268401
|
}
|
|
267605
268402
|
// package.json
|
|
267606
268403
|
var package_default = {
|
|
267607
268404
|
name: "@settlemint/sdk-cli",
|
|
267608
268405
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267609
|
-
version: "1.0.8-
|
|
268406
|
+
version: "1.0.8-pr0d10ee09",
|
|
267610
268407
|
type: "module",
|
|
267611
268408
|
private: false,
|
|
267612
268409
|
license: "FSL-1.1-MIT",
|
|
@@ -267647,8 +268444,7 @@ var package_default = {
|
|
|
267647
268444
|
},
|
|
267648
268445
|
dependencies: {
|
|
267649
268446
|
hardhat: "2.22.18",
|
|
267650
|
-
tinyexec: "0.3.2"
|
|
267651
|
-
"tty-table": "4.2.3"
|
|
268447
|
+
tinyexec: "0.3.2"
|
|
267652
268448
|
},
|
|
267653
268449
|
devDependencies: {
|
|
267654
268450
|
"@types/semver": "7.5.8",
|
|
@@ -267662,8 +268458,8 @@ var package_default = {
|
|
|
267662
268458
|
"@inquirer/input": "4.1.3",
|
|
267663
268459
|
"@inquirer/password": "4.0.6",
|
|
267664
268460
|
"@inquirer/select": "4.0.6",
|
|
267665
|
-
"@settlemint/sdk-js": "1.0.8-
|
|
267666
|
-
"@settlemint/sdk-utils": "1.0.8-
|
|
268461
|
+
"@settlemint/sdk-js": "1.0.8-pr0d10ee09",
|
|
268462
|
+
"@settlemint/sdk-utils": "1.0.8-pr0d10ee09",
|
|
267667
268463
|
"get-tsconfig": "4.9.0",
|
|
267668
268464
|
giget: "1.2.3",
|
|
267669
268465
|
yaml: "2.7.0"
|
|
@@ -268015,7 +268811,7 @@ async function installPackage(names, options = {}) {
|
|
|
268015
268811
|
}
|
|
268016
268812
|
|
|
268017
268813
|
// ../utils/dist/package-manager.mjs
|
|
268018
|
-
|
|
268814
|
+
var import_console_table_printer3 = __toESM(require_dist2(), 1);
|
|
268019
268815
|
var import_package_json = __toESM(require_lib12(), 1);
|
|
268020
268816
|
var import_package_json2 = __toESM(require_lib12(), 1);
|
|
268021
268817
|
async function projectRoot3(fallbackToCwd = false, cwd) {
|
|
@@ -272318,6 +273114,7 @@ var ApplicationFragment = graphql(`
|
|
|
272318
273114
|
workspace {
|
|
272319
273115
|
id
|
|
272320
273116
|
uniqueName
|
|
273117
|
+
name
|
|
272321
273118
|
}
|
|
272322
273119
|
}
|
|
272323
273120
|
`);
|
|
@@ -276479,9 +277276,16 @@ async function applicationsSpinner(settlemint, workspaceUniqueName) {
|
|
|
276479
277276
|
});
|
|
276480
277277
|
}
|
|
276481
277278
|
|
|
276482
|
-
// src/utils/get-
|
|
277279
|
+
// src/utils/get-platform-url.ts
|
|
276483
277280
|
function getClusterServicePlatformUrl(instance, application, service, serviceType) {
|
|
276484
|
-
|
|
277281
|
+
const applicationUrl = getApplicationUrl(instance, application);
|
|
277282
|
+
return new URL(`${getWorkspaceUrlPath(application.workspace)}${getApplicationUrlPath(application)}/${getUrlPathForService(service, serviceType)}`, applicationUrl).toString();
|
|
277283
|
+
}
|
|
277284
|
+
function getWorkspaceUrl(instance, workspace) {
|
|
277285
|
+
return new URL(getWorkspaceUrlPath(workspace), instance).toString();
|
|
277286
|
+
}
|
|
277287
|
+
function getApplicationUrl(instance, application) {
|
|
277288
|
+
return new URL(`${getWorkspaceUrlPath(application.workspace)}${getApplicationUrlPath(application)}/dashboard`, instance).toString();
|
|
276485
277289
|
}
|
|
276486
277290
|
function getUrlPathForService(service, serviceType) {
|
|
276487
277291
|
if (serviceType === "blockchain-network") {
|
|
@@ -276507,6 +277311,12 @@ function getUrlPathForService(service, serviceType) {
|
|
|
276507
277311
|
}
|
|
276508
277312
|
return "";
|
|
276509
277313
|
}
|
|
277314
|
+
function getWorkspaceUrlPath(workspace) {
|
|
277315
|
+
return `/workspaces/${encodeURIComponent(workspace.id)}`;
|
|
277316
|
+
}
|
|
277317
|
+
function getApplicationUrlPath(application) {
|
|
277318
|
+
return `/applications/${encodeURIComponent(application.id)}`;
|
|
277319
|
+
}
|
|
276510
277320
|
|
|
276511
277321
|
// ../../node_modules/yaml/dist/index.js
|
|
276512
277322
|
var composer = require_composer();
|
|
@@ -276559,7 +277369,7 @@ function formatHealthStatus(healthStatus, printToTerminal = true) {
|
|
|
276559
277369
|
if (healthStatus === "HEALTHY") {
|
|
276560
277370
|
return printToTerminal ? greenBright("Healthy") : "Healthy";
|
|
276561
277371
|
}
|
|
276562
|
-
const label =
|
|
277372
|
+
const label = camelCaseToWords2(replaceUnderscoresAndHyphensWithSpaces(healthStatus));
|
|
276563
277373
|
return printToTerminal ? yellowBright(label) : label;
|
|
276564
277374
|
}
|
|
276565
277375
|
|
|
@@ -276648,14 +277458,26 @@ function servicesCommand() {
|
|
|
276648
277458
|
printToTerminal,
|
|
276649
277459
|
wide
|
|
276650
277460
|
});
|
|
277461
|
+
const selectedApplication = await settlemint.application.read(applicationUniqueName);
|
|
277462
|
+
const data = {
|
|
277463
|
+
workspace: {
|
|
277464
|
+
uniqueName: selectedApplication.workspace.uniqueName,
|
|
277465
|
+
name: selectedApplication.workspace.name,
|
|
277466
|
+
url: getWorkspaceUrl(selectedInstance, selectedApplication.workspace)
|
|
277467
|
+
},
|
|
277468
|
+
application: {
|
|
277469
|
+
uniqueName: selectedApplication.uniqueName,
|
|
277470
|
+
name: selectedApplication.name,
|
|
277471
|
+
url: getApplicationUrl(selectedInstance, selectedApplication)
|
|
277472
|
+
},
|
|
277473
|
+
services: servicesToShow
|
|
277474
|
+
};
|
|
276651
277475
|
if (printToTerminal) {
|
|
276652
|
-
for (
|
|
276653
|
-
table(service.label, service.items, !wide);
|
|
276654
|
-
}
|
|
277476
|
+
table(`Services for ${selectedApplication.name} (${applicationUniqueName}) - ${getApplicationUrl(selectedInstance, selectedApplication)}`, servicesToShow);
|
|
276655
277477
|
} else if (output === "json") {
|
|
276656
|
-
console.log(JSON.stringify(
|
|
277478
|
+
console.log(JSON.stringify(data, null, 2));
|
|
276657
277479
|
} else if (output === "yaml") {
|
|
276658
|
-
console.log($stringify(
|
|
277480
|
+
console.log($stringify(data));
|
|
276659
277481
|
}
|
|
276660
277482
|
if (printToTerminal) {
|
|
276661
277483
|
outro("Application services listed");
|
|
@@ -276688,41 +277510,27 @@ async function getServicesAndMapResults({
|
|
|
276688
277510
|
if (serviceItems.length === 0 && !types2) {
|
|
276689
277511
|
return null;
|
|
276690
277512
|
}
|
|
276691
|
-
return {
|
|
276692
|
-
|
|
276693
|
-
|
|
276694
|
-
|
|
276695
|
-
|
|
276696
|
-
|
|
276697
|
-
|
|
276698
|
-
|
|
276699
|
-
|
|
276700
|
-
|
|
276701
|
-
|
|
276702
|
-
|
|
276703
|
-
nameAndUniqueName: `${s8.name}
|
|
276704
|
-
${s8.uniqueName}`,
|
|
276705
|
-
url: getClusterServicePlatformUrl(instance, application, s8, serviceType),
|
|
276706
|
-
...basicFields
|
|
276707
|
-
};
|
|
276708
|
-
}
|
|
276709
|
-
if (!printToTerminal) {
|
|
276710
|
-
return {
|
|
276711
|
-
name: s8.name,
|
|
276712
|
-
uniqueName: s8.uniqueName,
|
|
276713
|
-
...basicFields,
|
|
276714
|
-
url: getClusterServicePlatformUrl(instance, application, s8, serviceType)
|
|
276715
|
-
};
|
|
276716
|
-
}
|
|
277513
|
+
return serviceItems.map((s8) => {
|
|
277514
|
+
const basicFields = {
|
|
277515
|
+
group: capitalizeFirstLetter2(labels.plural),
|
|
277516
|
+
name: s8.name,
|
|
277517
|
+
uniqueName: s8.uniqueName,
|
|
277518
|
+
status: formatStatus(s8.status, printToTerminal),
|
|
277519
|
+
healthStatus: formatHealthStatus(s8.healthStatus, printToTerminal),
|
|
277520
|
+
type: formatServiceSubType(s8, printToTerminal),
|
|
277521
|
+
provider: s8.provider,
|
|
277522
|
+
region: s8.region
|
|
277523
|
+
};
|
|
277524
|
+
if (wide || !printToTerminal) {
|
|
276717
277525
|
return {
|
|
276718
|
-
|
|
276719
|
-
|
|
276720
|
-
...basicFields
|
|
277526
|
+
...basicFields,
|
|
277527
|
+
url: getClusterServicePlatformUrl(instance, application, s8, serviceType)
|
|
276721
277528
|
};
|
|
276722
|
-
}
|
|
276723
|
-
|
|
277529
|
+
}
|
|
277530
|
+
return basicFields;
|
|
277531
|
+
});
|
|
276724
277532
|
}).filter((result) => result !== null);
|
|
276725
|
-
return results;
|
|
277533
|
+
return results.flat();
|
|
276726
277534
|
}
|
|
276727
277535
|
function getItemsForServiceType(services, serviceType) {
|
|
276728
277536
|
switch (serviceType) {
|
|
@@ -277655,14 +278463,6 @@ function getCommandPath(command) {
|
|
|
277655
278463
|
}
|
|
277656
278464
|
return parts.join(" ");
|
|
277657
278465
|
}
|
|
277658
|
-
function getCommandPathFromArgv(argv) {
|
|
277659
|
-
const settlemintIndex = argv.indexOf("settlemint");
|
|
277660
|
-
const args = argv.slice(settlemintIndex !== -1 ? settlemintIndex + 1 : 0);
|
|
277661
|
-
if (!args.length) {
|
|
277662
|
-
return null;
|
|
277663
|
-
}
|
|
277664
|
-
return args.join(" ");
|
|
277665
|
-
}
|
|
277666
278466
|
function isLeafCommand(command) {
|
|
277667
278467
|
return command.commands.length === 0;
|
|
277668
278468
|
}
|
|
@@ -277670,20 +278470,18 @@ function isJsonOrYamlOutput(command) {
|
|
|
277670
278470
|
const options = command.opts();
|
|
277671
278471
|
return typeof options.output === "string" && (options.output === "json" || options.output === "yaml");
|
|
277672
278472
|
}
|
|
277673
|
-
function addHooksToCommand(cmd2, rootCmd
|
|
278473
|
+
function addHooksToCommand(cmd2, rootCmd) {
|
|
277674
278474
|
const extendedCmd = cmd2;
|
|
277675
278475
|
extendedCmd.hook("preAction", async (thisCommand) => {
|
|
277676
|
-
if (isLeafCommand(thisCommand)) {
|
|
277677
|
-
const commandPath = getCommandPath(thisCommand);
|
|
277678
|
-
rootCmd._lastCommand = thisCommand;
|
|
277679
|
-
rootCmd._lastCommand._commandPath = commandPath;
|
|
277680
|
-
}
|
|
277681
278476
|
if (isLeafCommand(thisCommand) && !isJsonOrYamlOutput(thisCommand)) {
|
|
277682
278477
|
ascii();
|
|
277683
278478
|
}
|
|
278479
|
+
const commandPath = getCommandPath(thisCommand);
|
|
278480
|
+
rootCmd._lastCommand = thisCommand;
|
|
278481
|
+
rootCmd._lastCommand._commandPath = commandPath;
|
|
277684
278482
|
}).hook("postAction", async (thisCommand) => {
|
|
277685
278483
|
if (isLeafCommand(thisCommand)) {
|
|
277686
|
-
const commandPath = thisCommand
|
|
278484
|
+
const commandPath = getCommandPath(thisCommand);
|
|
277687
278485
|
if (commandPath) {
|
|
277688
278486
|
await telemetry({
|
|
277689
278487
|
command: commandPath,
|
|
@@ -277693,22 +278491,14 @@ function addHooksToCommand(cmd2, rootCmd, argv) {
|
|
|
277693
278491
|
}
|
|
277694
278492
|
});
|
|
277695
278493
|
for (const subcmd of cmd2.commands) {
|
|
277696
|
-
addHooksToCommand(subcmd, rootCmd
|
|
278494
|
+
addHooksToCommand(subcmd, rootCmd);
|
|
277697
278495
|
}
|
|
277698
278496
|
}
|
|
277699
|
-
|
|
277700
|
-
const commandPath = sdkcli._lastCommand?._commandPath ?? getCommandPathFromArgv(argv);
|
|
277701
|
-
if (commandPath) {
|
|
277702
|
-
await telemetry({
|
|
277703
|
-
command: commandPath,
|
|
277704
|
-
status: "error",
|
|
277705
|
-
message: error5.message
|
|
277706
|
-
});
|
|
277707
|
-
}
|
|
277708
|
-
process.exit(1);
|
|
277709
|
-
}
|
|
277710
|
-
function registerCommands() {
|
|
278497
|
+
function sdkCliCommand(exitOverride = undefined) {
|
|
277711
278498
|
const sdkcli = new Command;
|
|
278499
|
+
if (exitOverride) {
|
|
278500
|
+
sdkcli.exitOverride(exitOverride);
|
|
278501
|
+
}
|
|
277712
278502
|
sdkcli.name("settlemint").usage("[command]").description(`CLI for SettleMint (v${package_default.version})`).version(package_default.version, "-v, --version", "Output the current version").helpOption("-h, --help", "Display help for command").allowUnknownOption().showSuggestionAfterError(true).showHelpAfterError();
|
|
277713
278503
|
sdkcli.addCommand(connectCommand());
|
|
277714
278504
|
sdkcli.addCommand(codegenCommand());
|
|
@@ -277717,23 +278507,26 @@ function registerCommands() {
|
|
|
277717
278507
|
sdkcli.addCommand(createCommand2());
|
|
277718
278508
|
sdkcli.addCommand(loginCommand());
|
|
277719
278509
|
sdkcli.addCommand(logoutCommand());
|
|
277720
|
-
return sdkcli;
|
|
277721
|
-
}
|
|
277722
|
-
async function sdkCliCommand(argv = process.argv) {
|
|
277723
|
-
const sdkcli = registerCommands();
|
|
277724
|
-
sdkcli.exitOverride((error5) => onError(sdkcli, argv, error5));
|
|
277725
278510
|
for (const cmd2 of sdkcli.commands) {
|
|
277726
|
-
addHooksToCommand(cmd2, sdkcli
|
|
278511
|
+
addHooksToCommand(cmd2, sdkcli);
|
|
277727
278512
|
}
|
|
277728
|
-
|
|
277729
|
-
|
|
277730
|
-
|
|
277731
|
-
|
|
277732
|
-
|
|
278513
|
+
if (!exitOverride) {
|
|
278514
|
+
sdkcli.parseAsync(process.argv).catch(async (error5) => {
|
|
278515
|
+
const commandPath = sdkcli._lastCommand?._commandPath;
|
|
278516
|
+
if (commandPath) {
|
|
278517
|
+
await telemetry({
|
|
278518
|
+
command: commandPath,
|
|
278519
|
+
status: "error",
|
|
278520
|
+
message: error5.message
|
|
278521
|
+
});
|
|
278522
|
+
}
|
|
278523
|
+
cancel2(error5.message);
|
|
278524
|
+
});
|
|
277733
278525
|
}
|
|
278526
|
+
return sdkcli;
|
|
277734
278527
|
}
|
|
277735
278528
|
|
|
277736
278529
|
// src/cli.ts
|
|
277737
278530
|
sdkCliCommand();
|
|
277738
278531
|
|
|
277739
|
-
//# debugId=
|
|
278532
|
+
//# debugId=4FEB267554EC89FA64756E2164756E21
|