@aidoris/kineti-cli 0.0.1

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.
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/cli.ts
4
+ import { Command } from "commander";
5
+
6
+ // package.json
7
+ var package_default = {
8
+ name: "@aidoris/kineti-cli",
9
+ version: "0.0.1",
10
+ type: "module",
11
+ author: "Pranav Sukumara Kurup <pranavs.nkm@gmail.com>",
12
+ repository: {
13
+ type: "git",
14
+ url: "git+https://github.com/aidoris/kineti.git",
15
+ directory: "apps/cli"
16
+ },
17
+ homepage: "https://github.com/aidoris/kineti#readme",
18
+ bugs: {
19
+ url: "https://github.com/aidoris/kineti/issues"
20
+ },
21
+ bin: {
22
+ kineti: "dist/index.js"
23
+ },
24
+ files: [
25
+ "dist"
26
+ ],
27
+ publishConfig: {
28
+ access: "public"
29
+ },
30
+ main: "./dist/index.js",
31
+ types: "./dist/index.d.ts",
32
+ exports: {
33
+ ".": {
34
+ types: "./dist/index.d.ts",
35
+ import: "./dist/index.js"
36
+ }
37
+ },
38
+ scripts: {
39
+ dev: "bun run src/index.ts",
40
+ build: "tsup",
41
+ prepublishOnly: "tsup",
42
+ lint: "eslint",
43
+ format: 'prettier --write "**/*.{ts,tsx}"',
44
+ typecheck: "tsc --noEmit"
45
+ },
46
+ dependencies: {
47
+ commander: "^14.0.3"
48
+ },
49
+ devDependencies: {
50
+ "@tanstack/eslint-config": "^0.3.0",
51
+ "@types/node": "^25.1.0",
52
+ eslint: "^9.39.2",
53
+ tsup: "^8.5.1",
54
+ typescript: "^5.9.3"
55
+ }
56
+ };
57
+
58
+ // src/cli.ts
59
+ var createCli = () => {
60
+ const program2 = new Command().name("kineti").description("Kineti command-line interface").version(package_default.version);
61
+ program2.command("hello").description("Print a greeting").argument("[name]", "Name to greet", "world").action((name) => {
62
+ console.log(`Hello, ${name}!`);
63
+ });
64
+ return program2;
65
+ };
66
+
67
+ // src/index.ts
68
+ var program = createCli();
69
+ program.parse(process.argv);
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@aidoris/kineti-cli",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "author": "Pranav Sukumara Kurup <pranavs.nkm@gmail.com>",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/aidoris/kineti.git",
9
+ "directory": "apps/cli"
10
+ },
11
+ "homepage": "https://github.com/aidoris/kineti#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/aidoris/kineti/issues"
14
+ },
15
+ "bin": {
16
+ "kineti": "dist/index.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "main": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js"
30
+ }
31
+ },
32
+ "scripts": {
33
+ "dev": "bun run src/index.ts",
34
+ "build": "tsup",
35
+ "prepublishOnly": "tsup",
36
+ "lint": "eslint",
37
+ "format": "prettier --write \"**/*.{ts,tsx}\"",
38
+ "typecheck": "tsc --noEmit"
39
+ },
40
+ "dependencies": {
41
+ "commander": "^14.0.3"
42
+ },
43
+ "devDependencies": {
44
+ "@tanstack/eslint-config": "^0.3.0",
45
+ "@types/node": "^25.1.0",
46
+ "eslint": "^9.39.2",
47
+ "tsup": "^8.5.1",
48
+ "typescript": "^5.9.3"
49
+ }
50
+ }