olakai-cli 0.1.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 +39 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Olakai CLI
|
|
2
|
+
|
|
3
|
+
Command-line interface tool for the Olakai platform.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g olakai-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
olakai <command> [options]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Development
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Install dependencies
|
|
21
|
+
pnpm install
|
|
22
|
+
|
|
23
|
+
# Run in development mode
|
|
24
|
+
pnpm dev
|
|
25
|
+
|
|
26
|
+
# Build for production
|
|
27
|
+
pnpm build
|
|
28
|
+
|
|
29
|
+
# Run linting
|
|
30
|
+
pnpm lint
|
|
31
|
+
|
|
32
|
+
# Type check
|
|
33
|
+
pnpm type-check
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Requirements
|
|
37
|
+
|
|
38
|
+
- Node.js v20 or higher
|
|
39
|
+
- pnpm v10 or higher
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Command } from "commander";
|
|
5
|
+
var program = new Command();
|
|
6
|
+
program.name("olakai").description("Olakai CLI tool").version("0.1.0");
|
|
7
|
+
program.command("hello").description("Say hello").argument("[name]", "Name to greet", "World").action((name) => {
|
|
8
|
+
console.log(`Hello, ${name}!`);
|
|
9
|
+
});
|
|
10
|
+
program.parse();
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { Command } from \"commander\";\n\nconst program = new Command();\n\nprogram\n .name(\"olakai\")\n .description(\"Olakai CLI tool\")\n .version(\"0.1.0\");\n\nprogram\n .command(\"hello\")\n .description(\"Say hello\")\n .argument(\"[name]\", \"Name to greet\", \"World\")\n .action((name: string) => {\n console.log(`Hello, ${name}!`);\n });\n\nprogram.parse();\n"],"mappings":";;;AAEA,SAAS,eAAe;AAExB,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,QAAQ,EACb,YAAY,iBAAiB,EAC7B,QAAQ,OAAO;AAElB,QACG,QAAQ,OAAO,EACf,YAAY,WAAW,EACvB,SAAS,UAAU,iBAAiB,OAAO,EAC3C,OAAO,CAAC,SAAiB;AACxB,UAAQ,IAAI,UAAU,IAAI,GAAG;AAC/B,CAAC;AAEH,QAAQ,MAAM;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "olakai-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Olakai CLI tool",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"olakai": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsup",
|
|
15
|
+
"dev": "tsx src/index.ts",
|
|
16
|
+
"start": "node dist/index.js",
|
|
17
|
+
"lint": "eslint src --ext .ts",
|
|
18
|
+
"type-check": "tsc --noEmit",
|
|
19
|
+
"prepublishOnly": "pnpm build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"olakai",
|
|
23
|
+
"cli"
|
|
24
|
+
],
|
|
25
|
+
"author": "",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=20"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@eslint/js": "^9.18.0",
|
|
32
|
+
"@types/node": "^22.0.0",
|
|
33
|
+
"eslint": "^9.18.0",
|
|
34
|
+
"tsup": "^8.0.0",
|
|
35
|
+
"tsx": "^4.20.0",
|
|
36
|
+
"typescript": "^5.6.0",
|
|
37
|
+
"typescript-eslint": "^8.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"commander": "^12.0.0"
|
|
41
|
+
},
|
|
42
|
+
"packageManager": "pnpm@10.10.0"
|
|
43
|
+
}
|