@dbcube/cli 5.2.2 ā 5.2.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbcube/cli",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dbcube": "node src/index.js"
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@dbcube/schema-builder": "^5.2.
|
|
31
|
+
"@dbcube/schema-builder": "^5.2.4",
|
|
32
32
|
"@inquirer/prompts": "^8.5.2",
|
|
33
33
|
"alwait": "^1.0.0",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
|
-
"dbcube": "^5.2.
|
|
35
|
+
"dbcube": "^5.2.4",
|
|
36
36
|
"dotenv": "^17.4.2",
|
|
37
37
|
"fs-extra": "^11.3.5",
|
|
38
38
|
"glob": "^13.0.6",
|
package/src/commands/help.js
CHANGED
|
@@ -46,7 +46,7 @@ async function showHelp() {
|
|
|
46
46
|
console.log(` ${chalk.yellow('run download')} ${chalk.white('Download binaries interactively')}`);
|
|
47
47
|
console.log(` ${chalk.yellow('run download <engine>')} ${chalk.white('Download specific engine (latest version)')}`);
|
|
48
48
|
console.log(` ${chalk.yellow('run download <engine> <ver>')} ${chalk.white('Download specific engine version')}`);
|
|
49
|
-
console.log(` ${chalk.gray(' Engines:')} query-engine, schema-engine
|
|
49
|
+
console.log(` ${chalk.gray(' Engines:')} query-engine, schema-engine\n`);
|
|
50
50
|
|
|
51
51
|
console.log(`${chalk.cyan.bold('UTILITY COMMANDS:')}`);
|
|
52
52
|
console.log(` ${chalk.yellow('version, --version, -v')} ${chalk.white('Show CLI version information')}`);
|
|
@@ -14,8 +14,7 @@ const args = process.argv.slice(2);
|
|
|
14
14
|
|
|
15
15
|
const SUPPORTED_BINARIES = {
|
|
16
16
|
'query-engine': 'query',
|
|
17
|
-
'schema-engine': 'schema'
|
|
18
|
-
'sqlite-engine': 'sqlite'
|
|
17
|
+
'schema-engine': 'schema'
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
const PLATFORM_MAP = {
|
|
@@ -234,8 +233,7 @@ async function interactiveMode() {
|
|
|
234
233
|
message: 'Selecciona el binario a descargar:',
|
|
235
234
|
choices: [
|
|
236
235
|
{ name: 'Query Engine', value: 'query-engine' },
|
|
237
|
-
{ name: 'Schema Engine', value: 'schema-engine' }
|
|
238
|
-
{ name: 'SQLite Engine', value: 'sqlite-engine' }
|
|
236
|
+
{ name: 'Schema Engine', value: 'schema-engine' }
|
|
239
237
|
]
|
|
240
238
|
});
|
|
241
239
|
|
package/src/commands/update.js
CHANGED
|
@@ -9,14 +9,12 @@ const unzipper = require('unzipper');
|
|
|
9
9
|
|
|
10
10
|
const VERSION_URLS = {
|
|
11
11
|
'query-engine': 'https://raw.githubusercontent.com/Dbcube/binaries/main/query-engines.json',
|
|
12
|
-
'schema-engine': 'https://raw.githubusercontent.com/Dbcube/binaries/main/schema-engines.json'
|
|
13
|
-
'sqlite-engine': 'https://raw.githubusercontent.com/Dbcube/binaries/main/sqlite-engines.json'
|
|
12
|
+
'schema-engine': 'https://raw.githubusercontent.com/Dbcube/binaries/main/schema-engines.json'
|
|
14
13
|
};
|
|
15
14
|
|
|
16
15
|
const BINARY_PREFIX_MAP = {
|
|
17
16
|
'query-engine': 'query',
|
|
18
|
-
'schema-engine': 'schema'
|
|
19
|
-
'sqlite-engine': 'sqlite'
|
|
17
|
+
'schema-engine': 'schema'
|
|
20
18
|
};
|
|
21
19
|
|
|
22
20
|
const PLATFORM_MAP = {
|
|
@@ -332,7 +330,7 @@ async function main() {
|
|
|
332
330
|
console.log(chalk.blue('\nš Dbcube Update - Check and Update Binaries\n'));
|
|
333
331
|
|
|
334
332
|
const binDir = getBinDir();
|
|
335
|
-
const binaries = ['query-engine', 'schema-engine'
|
|
333
|
+
const binaries = ['query-engine', 'schema-engine'];
|
|
336
334
|
|
|
337
335
|
const spinner = ora('Checking versions...').start();
|
|
338
336
|
|
package/src/commands/version.js
CHANGED
|
@@ -18,7 +18,7 @@ function findEngineVersions() {
|
|
|
18
18
|
const engines = {};
|
|
19
19
|
try {
|
|
20
20
|
for (const f of fs.readdirSync(binDir)) {
|
|
21
|
-
const m = f.match(/^(query-engine|schema-engine
|
|
21
|
+
const m = f.match(/^(query-engine|schema-engine)-v([\d.]+)-/);
|
|
22
22
|
if (m) engines[m[1]] = `v${m[2]}`;
|
|
23
23
|
}
|
|
24
24
|
} catch { /* no binaries downloaded yet */ }
|