@talos-org/cli 0.1.14 → 0.1.16
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
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=>o(e));async function o(e){console.log(`Hello, ${e.name}`);}var t={version:"0.1.
|
|
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=>o(e));async function o(e){console.log(`Hello, ${e.name}`);}var t={version:"0.1.16"};process.on("SIGINT",()=>process.exit(0));process.on("SIGTERM",()=>process.exit(0));async function a(){let e=new Command().name("talos").description("Manage everything.").version(t.version,"-v, --version","display the version number");e.addCommand(s),e.parse();}a();//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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,OAAAA,CAAQ,OAAO,CAAA,CAC5C,WAAA,CAAY,wBAAwB,CAAA,CACpC,MAAA,CAAO,oBAAqB,eAAA,CAAiB,OAAO,CAAA,CACpD,MAAA,CAAQC,CAAAA,EAASC,CAAAA,CAAaD,CAAI,CAAC,CAAA,CAEtC,eAAsBC,CAAAA,CAAaC,CAAAA,CAA4B,CAC7D,OAAA,CAAQ,GAAA,CAAI,CAAA,OAAA,EAAUA,CAAAA,CAAQ,IAAI,CAAA,CAAE,EACtC,CCTA,IAAAC,EAAA,CAEE,OAAA,CAAW,QA6Db,CAAA,CCxDA,QAAQ,EAAA,CAAG,QAAA,CAAU,IAAM,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAC1C,OAAA,CAAQ,GAAG,SAAA,CAAW,IAAM,QAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAE3C,eAAeC,CAAAA,EAAO,CACpB,IAAMC,CAAAA,CAAU,IAAIN,OAAAA,EAAQ,CACzB,KAAK,OAAO,CAAA,CACZ,YAAY,oBAAoB,CAAA,CAChC,OAAA,CACCI,CAAAA,CAAY,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\";\n\nexport const helloCommand = new Command(\"hello\")\n .description(\"Say hello to the user!\")\n .option(\"-n, --name <name>\", \"Name to greet\", \"World\")\n .action((opts) => helloHandler(opts));\n\nexport async function helloHandler(options: { name?: string }) {\n console.log(`Hello, ${options.name}`);\n}\n","{\n \"name\": \"@talos-org/cli\",\n \"version\": \"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,OAAAA,CAAQ,OAAO,CAAA,CAC5C,WAAA,CAAY,wBAAwB,CAAA,CACpC,MAAA,CAAO,oBAAqB,eAAA,CAAiB,OAAO,CAAA,CACpD,MAAA,CAAQC,CAAAA,EAASC,CAAAA,CAAaD,CAAI,CAAC,CAAA,CAEtC,eAAsBC,CAAAA,CAAaC,CAAAA,CAA4B,CAC7D,OAAA,CAAQ,GAAA,CAAI,CAAA,OAAA,EAAUA,CAAAA,CAAQ,IAAI,CAAA,CAAE,EACtC,CCTA,IAAAC,EAAA,CAEE,OAAA,CAAW,QA6Db,CAAA,CCxDA,QAAQ,EAAA,CAAG,QAAA,CAAU,IAAM,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAC1C,OAAA,CAAQ,GAAG,SAAA,CAAW,IAAM,QAAQ,IAAA,CAAK,CAAC,CAAC,CAAA,CAE3C,eAAeC,CAAAA,EAAO,CACpB,IAAMC,CAAAA,CAAU,IAAIN,OAAAA,EAAQ,CACzB,KAAK,OAAO,CAAA,CACZ,YAAY,oBAAoB,CAAA,CAChC,OAAA,CACCI,CAAAA,CAAY,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\";\n\nexport const helloCommand = new Command(\"hello\")\n .description(\"Say hello to the user!\")\n .option(\"-n, --name <name>\", \"Name to greet\", \"World\")\n .action((opts) => helloHandler(opts));\n\nexport async function helloHandler(options: { name?: string }) {\n console.log(`Hello, ${options.name}`);\n}\n","{\n \"name\": \"@talos-org/cli\",\n \"version\": \"0.1.16\",\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 \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/Vandlee/talos-cli.git\"\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 \"pub:beta\": \"pnpm build && pnpm publish --no-git-checks --access public --tag beta\",\n \"pub:next\": \"pnpm build && pnpm publish --no-git-checks --access public --tag next\",\n \"pub:release\": \"pnpm build && pnpm publish --access public\",\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\n\nimport { Command } from \"commander\";\nimport { helloCommand } from \"./commands/hello\";\n\nimport packageJson from \"../package.json\";\n\nprocess.on(\"SIGINT\", () => process.exit(0));\nprocess.on(\"SIGTERM\", () => process.exit(0));\n\nasync function main() {\n const program = new Command()\n .name(\"talos\")\n .description(\"Manage everything.\")\n .version(\n packageJson.version || \"1.0.0\",\n \"-v, --version\",\n \"display the version number\",\n );\n\n program.addCommand(helloCommand);\n\n program.parse();\n}\n\nmain();\n"]}
|