herdux-cli 0.1.2 → 0.2.2
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/README.md +17 -2
- package/README.pt-BR.md +17 -2
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -3
package/README.md
CHANGED
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
A fast, interactive CLI that removes friction from daily local database workflows, especially when juggling multiple instances and large datasets.
|
|
10
10
|
|
|
11
|
-

|
|
12
12
|

|
|
13
13
|

|
|
14
|
+
[](https://github.com/sponsors/eduardozaniboni)
|
|
15
|
+
[](https://www.buymeacoffee.com/eduardozaniboni)
|
|
14
16
|
|
|
15
17
|
> Optimized for local and development environments. Production use is supported with explicit configuration.
|
|
16
18
|
|
|
@@ -24,7 +26,9 @@ A fast, interactive CLI that removes friction from daily local database workflow
|
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
28
|
npm install -g herdux-cli
|
|
27
|
-
|
|
29
|
+
|
|
30
|
+
# You can use either 'herdux' or the shorter 'hdx' alias
|
|
31
|
+
hdx doctor
|
|
28
32
|
herdux list
|
|
29
33
|
```
|
|
30
34
|
|
|
@@ -134,6 +138,8 @@ If you manage databases locally, Herdux was created to solve your pain.
|
|
|
134
138
|
|
|
135
139
|
**npm (recommended):**
|
|
136
140
|
|
|
141
|
+
> **⚠️ IMPORTANT:** You must use the `-g` (global) flag for the CLI to be accessible anywhere in your terminal.
|
|
142
|
+
|
|
137
143
|
```bash
|
|
138
144
|
npm install -g herdux-cli
|
|
139
145
|
```
|
|
@@ -365,6 +371,15 @@ npm run dev
|
|
|
365
371
|
|
|
366
372
|
---
|
|
367
373
|
|
|
374
|
+
## ☕ Support the Project
|
|
375
|
+
|
|
376
|
+
If **Herdux** has saved you hours of debugging and database wrangling, consider supporting the project! It helps keep it active and open-source.
|
|
377
|
+
|
|
378
|
+
<a href="https://github.com/sponsors/eduardozaniboni" target="_blank"><img src="https://img.shields.io/badge/Sponsor-%E2%9D%A4-pink?style=for-the-badge&logo=github" alt="GitHub Sponsors"></a>
|
|
379
|
+
<a href="https://www.buymeacoffee.com/eduardozaniboni" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 28px !important;width: 100px !important;" ></a>
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
368
383
|
## 📄 License
|
|
369
384
|
|
|
370
385
|
MIT
|
package/README.pt-BR.md
CHANGED
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
Uma CLI rápida e interativa que remove a fricção dos workflows diários com bancos de dados locais, especialmente ao lidar com múltiplas instâncias e grandes datasets.
|
|
10
10
|
|
|
11
|
-

|
|
12
12
|

|
|
13
13
|

|
|
14
|
+
[](https://github.com/sponsors/eduardozaniboni)
|
|
15
|
+
[](https://www.buymeacoffee.com/eduardozaniboni)
|
|
14
16
|
|
|
15
17
|
> Otimizado para ambientes locais e de desenvolvimento. O uso em produção é suportado com configuração explícita.
|
|
16
18
|
|
|
@@ -24,7 +26,9 @@ Uma CLI rápida e interativa que remove a fricção dos workflows diários com b
|
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
28
|
npm install -g herdux-cli
|
|
27
|
-
|
|
29
|
+
|
|
30
|
+
# Você pode usar 'herdux' ou o alias mais curto 'hdx'
|
|
31
|
+
hdx doctor
|
|
28
32
|
herdux list
|
|
29
33
|
```
|
|
30
34
|
|
|
@@ -133,6 +137,8 @@ O **Herdux** trata operações destrutivas com cuidado:
|
|
|
133
137
|
|
|
134
138
|
**npm (recomendado):**
|
|
135
139
|
|
|
140
|
+
> **⚠️ IMPORTANTE:** Você precisa usar a flag `-g` (global) para que a CLI fique disponível no seu terminal.
|
|
141
|
+
|
|
136
142
|
```bash
|
|
137
143
|
npm install -g herdux-cli
|
|
138
144
|
```
|
|
@@ -364,6 +370,15 @@ npm run dev
|
|
|
364
370
|
|
|
365
371
|
---
|
|
366
372
|
|
|
373
|
+
## ☕ Apoie o Projeto
|
|
374
|
+
|
|
375
|
+
Se o **Herdux** tem te salvado horas de dores de cabeça com bancos de dados, considere apoiar o projeto! Isso ajuda demais a mantê-lo ativo e open-source.
|
|
376
|
+
|
|
377
|
+
<a href="https://github.com/sponsors/eduardozaniboni" target="_blank"><img src="https://img.shields.io/badge/Sponsor-%E2%9D%A4-pink?style=for-the-badge&logo=github" alt="GitHub Sponsors"></a>
|
|
378
|
+
<a href="https://www.buymeacoffee.com/eduardozaniboni" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 28px !important;width: 100px !important;" ></a>
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
367
382
|
## 📄 Licença
|
|
368
383
|
|
|
369
384
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -9,12 +9,18 @@ import { registerRestoreCommand } from "./commands/restore.js";
|
|
|
9
9
|
import { registerConfigCommand } from "./commands/config.js";
|
|
10
10
|
import { registerCleanCommand } from "./commands/clean.js";
|
|
11
11
|
import { registerDoctorCommand } from "./commands/doctor.js";
|
|
12
|
+
import { join, dirname } from "path";
|
|
13
|
+
import { fileURLToPath } from "url";
|
|
14
|
+
import { readFileSync } from "fs";
|
|
15
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const pkgPath = join(__dirname, "..", "package.json");
|
|
17
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
12
18
|
const program = new Command();
|
|
13
19
|
program
|
|
14
20
|
.name("herdux")
|
|
15
21
|
.helpCommand(false)
|
|
16
22
|
.description("A modern CLI to Database management")
|
|
17
|
-
.version(
|
|
23
|
+
.version(pkg.version)
|
|
18
24
|
.option("-H, --host <host>", "Database host")
|
|
19
25
|
.option("-p, --port <port>", "Database port (auto-detected if omitted)")
|
|
20
26
|
.option("-U, --user <user>", "Database user")
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,QAAQ,CAAC;KACd,WAAW,CAAC,KAAK,CAAC;KAClB,WAAW,CAAC,qCAAqC,CAAC;KAClD,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAu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;AAC/B,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAChC,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAC/B,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC9B,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAE/B,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdux-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Modern Database workflow CLI focused on developer experience, safety, and automation.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"bin": {
|
|
12
|
-
"herdux": "
|
|
12
|
+
"herdux": "dist/index.js",
|
|
13
|
+
"hdx": "dist/index.js"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"dist",
|
|
@@ -28,7 +29,17 @@
|
|
|
28
29
|
"backup",
|
|
29
30
|
"restore"
|
|
30
31
|
],
|
|
31
|
-
"
|
|
32
|
+
"funding": [
|
|
33
|
+
{
|
|
34
|
+
"type": "github",
|
|
35
|
+
"url": "https://github.com/sponsors/eduardozaniboni"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "buymeacoffee",
|
|
39
|
+
"url": "https://www.buymeacoffee.com/eduardozaniboni"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"author": "Eduardo Zaniboni",
|
|
32
43
|
"license": "MIT",
|
|
33
44
|
"dependencies": {
|
|
34
45
|
"chalk": "^5.6.2",
|