@talos-org/cli 0.1.3
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/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +56 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {Command}from'commander';var s=new Command("hello").description("Say hello to the user!").option("-n, --name <name>","Name to greet","World").action(e=>n(e));async function n(e){console.log(`Hello, ${e.name}`);}var o={version:"0.1.3"};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function a(){let e=new Command().name("talos").description("Talos CLI Tool").version(o.version,"-v, --version","display the version number");e.addCommand(s),e.parse();}a();//# sourceMappingURL=index.js.map
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/hello.ts","../package.json","../src/index.ts"],"names":["helloCommand","Command","opts","helloHandler","options","package_default","main","program"],"mappings":";gCAEO,IAAMA,CAAAA,CAAe,IAAIC,QAAQ,OAAO,CAAA,CAC5C,YAAY,wBAAwB,CAAA,CACpC,OAAO,mBAAA,CAAqB,eAAA,CAAiB,OAAO,CAAA,CACpD,MAAA,CAAQC,GAASC,CAAAA,CAAaD,CAAI,CAAC,CAAA,CAEtC,eAAsBC,EAAaC,CAAAA,CAA4B,CAC7D,QAAQ,GAAA,CAAI,CAAA,OAAA,EAAUA,EAAQ,IAAI,CAAA,CAAE,EACtC,CCTA,IAAAC,EAAA,CAEE,OAAA,CAAW,OAsDb,CAAA,CCjDA,QAAQ,EAAA,CAAG,QAAA,CAAU,IAAM,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAC1C,QAAQ,EAAA,CAAG,SAAA,CAAW,IAAM,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAE3C,eAAeC,CAAAA,EAAO,CACpB,IAAMC,CAAAA,CAAU,IAAIN,SAAQ,CACzB,IAAA,CAAK,OAAO,CAAA,CACZ,WAAA,CAAY,gBAAgB,CAAA,CAC5B,OAAA,CACCI,EAAY,OAAW,CACvB,gBACA,4BACF,CAAA,CAEFE,EAAQ,UAAA,CAAWP,CAAY,EAE/BO,CAAAA,CAAQ,KAAA,GACV,CAEAD,CAAAA,EAAK","file":"index.js","sourcesContent":["import { Command } from \"commander\";\r\n\r\nexport const helloCommand = new Command(\"hello\")\r\n .description(\"Say hello to the user!\")\r\n .option(\"-n, --name <name>\", \"Name to greet\", \"World\")\r\n .action((opts) => helloHandler(opts));\r\n\r\nexport async function helloHandler(options: { name?: string }) {\r\n console.log(`Hello, ${options.name}`);\r\n}\r\n","{\n \"name\": \"@talos-org/cli\",\n \"version\": \"0.1.3\",\n \"description\": \"\",\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"license\": \"MIT\",\n \"author\": {\n \"name\": \"sergiocortes-dll\",\n \"url\": \"https://x.com/sergiocortes-dll\"\n },\n \"files\": [\n \"dist\"\n ],\n \"keywords\": [],\n \"type\": \"module\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"default\": \"./dist/index.js\"\n }\n },\n \"bin\": {\n \"talos\": \"./dist/index.js\"\n },\n \"scripts\": {\n \"talos\": \"pnpm start:dev\",\n \"dev\": \"tsup --watch\",\n \"build\": \"tsup\",\n \"typecheck\": \"tsc --noEmit\",\n \"start\": \"node dist/index.js\",\n \"start:dev\": \"node dist/index.js\",\n \"test\": \"vitest run\"\n },\n \"packageManager\": \"pnpm@10.28.2\",\n \"dependencies\": {\n \"chalk\": \"^5.6.2\",\n \"cli-spinners\": \"^3.4.0\",\n \"commander\": \"^14.0.3\",\n \"dotenv\": \"^17.2.4\",\n \"execa\": \"^9.6.1\",\n \"pino\": \"^10.3.0\",\n \"vite-tsconfig-paths\": \"^6.0.5\",\n \"zod\": \"^4.3.6\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^25.2.1\",\n \"eslint\": \"^10.0.0\",\n \"prettier\": \"^3.8.1\",\n \"tsconfig-paths\": \"^4.2.0\",\n \"tsx\": \"^4.21.0\",\n \"tsup\": \"^8.5.1\",\n \"typescript\": \"^5.9.3\",\n \"vitest\": \"^4.0.18\"\n }\n}\n","#!/usr/bin/env node\r\n\r\nimport { Command } from \"commander\";\r\nimport { helloCommand } from \"./commands/hello\";\r\n\r\nimport packageJson from \"../package.json\";\r\n\r\nprocess.on(\"SIGINT\", () => process.exit(0));\r\nprocess.on(\"SIGTERM\", () => process.exit(0));\r\n\r\nasync function main() {\r\n const program = new Command()\r\n .name(\"talos\")\r\n .description(\"Talos CLI Tool\")\r\n .version(\r\n packageJson.version || \"1.0.0\",\r\n \"-v, --version\",\r\n \"display the version number\",\r\n );\r\n\r\n program.addCommand(helloCommand);\r\n\r\n program.parse();\r\n}\r\n\r\nmain();\r\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@talos-org/cli",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "sergiocortes-dll",
|
|
11
|
+
"url": "https://x.com/sergiocortes-dll"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"bin": {
|
|
25
|
+
"talos": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"chalk": "^5.6.2",
|
|
29
|
+
"cli-spinners": "^3.4.0",
|
|
30
|
+
"commander": "^14.0.3",
|
|
31
|
+
"dotenv": "^17.2.4",
|
|
32
|
+
"execa": "^9.6.1",
|
|
33
|
+
"pino": "^10.3.0",
|
|
34
|
+
"vite-tsconfig-paths": "^6.0.5",
|
|
35
|
+
"zod": "^4.3.6"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^25.2.1",
|
|
39
|
+
"eslint": "^10.0.0",
|
|
40
|
+
"prettier": "^3.8.1",
|
|
41
|
+
"tsconfig-paths": "^4.2.0",
|
|
42
|
+
"tsx": "^4.21.0",
|
|
43
|
+
"tsup": "^8.5.1",
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"vitest": "^4.0.18"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"talos": "pnpm start:dev",
|
|
49
|
+
"dev": "tsup --watch",
|
|
50
|
+
"build": "tsup",
|
|
51
|
+
"typecheck": "tsc --noEmit",
|
|
52
|
+
"start": "node dist/index.js",
|
|
53
|
+
"start:dev": "node dist/index.js",
|
|
54
|
+
"test": "vitest run"
|
|
55
|
+
}
|
|
56
|
+
}
|