zerohelper-cli 11.0.0
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 +79 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/package.json +18 -0
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# zerohelper-cli
|
|
2
|
+
|
|
3
|
+
ZeroHelper CLI with plugin support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install zerohelper-cli
|
|
9
|
+
npm install commander
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
# Initialize a new project
|
|
16
|
+
zerohelper init my-project
|
|
17
|
+
|
|
18
|
+
# Start development server
|
|
19
|
+
zerohelper dev
|
|
20
|
+
|
|
21
|
+
# Run migrations
|
|
22
|
+
zerohelper migrate
|
|
23
|
+
|
|
24
|
+
# Seed database
|
|
25
|
+
zerohelper seed
|
|
26
|
+
|
|
27
|
+
# Build for production
|
|
28
|
+
zerohelper build
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Commands
|
|
32
|
+
|
|
33
|
+
### init <name>
|
|
34
|
+
Initialize a new ZeroHelper project.
|
|
35
|
+
|
|
36
|
+
### dev [options]
|
|
37
|
+
Start development server.
|
|
38
|
+
|
|
39
|
+
Options:
|
|
40
|
+
- `--port <port>` - Server port
|
|
41
|
+
- `--watch` - Watch for changes
|
|
42
|
+
|
|
43
|
+
### migrate [options]
|
|
44
|
+
Run database migrations.
|
|
45
|
+
|
|
46
|
+
Options:
|
|
47
|
+
- `--env <env>` - Environment
|
|
48
|
+
- `--dry-run` - Preview without executing
|
|
49
|
+
|
|
50
|
+
### seed [options]
|
|
51
|
+
Seed database with test data.
|
|
52
|
+
|
|
53
|
+
Options:
|
|
54
|
+
- `--env <env>` - Environment
|
|
55
|
+
- `--count <count>` - Number of records
|
|
56
|
+
|
|
57
|
+
### build
|
|
58
|
+
Build for production.
|
|
59
|
+
|
|
60
|
+
### repl
|
|
61
|
+
Start interactive REPL.
|
|
62
|
+
|
|
63
|
+
## Programmatic Usage
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
import { CLI } from 'zerohelper-cli';
|
|
67
|
+
|
|
68
|
+
const cli = new CLI({
|
|
69
|
+
name: 'myapp',
|
|
70
|
+
version: '1.0.0',
|
|
71
|
+
commands: [/* custom commands */]
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
cli.run(process.argv);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
ISC
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const commander_1 = require("commander");
|
|
8
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
9
|
+
const program = new commander_1.Command();
|
|
10
|
+
program
|
|
11
|
+
.name('zero')
|
|
12
|
+
.description(chalk_1.default.cyan('ZeroHelper CLI - Elite Database Management Tool'))
|
|
13
|
+
.version('11.0.0');
|
|
14
|
+
program.command('init')
|
|
15
|
+
.description('Initialize a new ZeroHelper project')
|
|
16
|
+
.action(() => {
|
|
17
|
+
console.log(chalk_1.default.green('Initializing ZeroHelper project...'));
|
|
18
|
+
});
|
|
19
|
+
program.command('db:test')
|
|
20
|
+
.description('Test database connection')
|
|
21
|
+
.action(() => {
|
|
22
|
+
console.log(chalk_1.default.yellow('Database test coming soon...'));
|
|
23
|
+
});
|
|
24
|
+
program.command('db:stats')
|
|
25
|
+
.description('Show database statistics')
|
|
26
|
+
.action(() => {
|
|
27
|
+
console.log(chalk_1.default.yellow('Database stats coming soon...'));
|
|
28
|
+
});
|
|
29
|
+
program.command('migrate')
|
|
30
|
+
.description('Run database migrations')
|
|
31
|
+
.action(() => {
|
|
32
|
+
console.log(chalk_1.default.yellow('Migrations coming soon...'));
|
|
33
|
+
});
|
|
34
|
+
program.parse();
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AACA,yCAAoC;AACpC,kDAA0B;AAE1B,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,MAAM,CAAC;KACZ,WAAW,CAAC,eAAK,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;KAC1E,OAAO,CAAC,QAAQ,CAAC,CAAC;AAErB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;KACpB,WAAW,CAAC,qCAAqC,CAAC;KAClD,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;KACvB,WAAW,CAAC,0BAA0B,CAAC;KACvC,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;KACxB,WAAW,CAAC,0BAA0B,CAAC;KACvC,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,+BAA+B,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;KACvB,WAAW,CAAC,yBAAyB,CAAC;KACtC,MAAM,CAAC,GAAG,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;AACzD,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zerohelper-cli",
|
|
3
|
+
"version": "11.0.0",
|
|
4
|
+
"description": "ZeroHelper CLI with plugin support",
|
|
5
|
+
"bin": {
|
|
6
|
+
"zero": "./dist/index.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"scripts": { "build": "tsc", "clean": "rm -rf dist" },
|
|
11
|
+
"keywords": ["zerohelper", "cli"],
|
|
12
|
+
"author": "Onure9e",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"dependencies": { "commander": "^11.1.0", "chalk": "^4.1.2" },
|
|
15
|
+
"devDependencies": { "@types/node": "^22.10.2", "typescript": "^5.7.2" },
|
|
16
|
+
"files": ["dist", "README.md"],
|
|
17
|
+
"publishConfig": { "access": "public" }
|
|
18
|
+
}
|