@h3ravel/console 11.0.4 → 11.0.7

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.
Files changed (80) hide show
  1. package/bin/chunk-6Z5DP356.js +1 -0
  2. package/bin/lexer-DQCqS3nf-XQPNMZG6.js +4 -0
  3. package/bin/run.cjs +6 -6
  4. package/bin/run.js +6 -6
  5. package/dist/Commands/MigrateCommand.cjs +0 -2
  6. package/dist/Commands/MigrateCommand.js +1 -1
  7. package/dist/Commands/ServeCommand.cjs +2 -2
  8. package/dist/Commands/ServeCommand.js +1 -1
  9. package/dist/IO/app.cjs +28 -16
  10. package/dist/IO/app.js +7 -7
  11. package/dist/IO/providers.cjs +26 -5
  12. package/dist/IO/providers.js +6 -6
  13. package/dist/Kernel.cjs +2 -4
  14. package/dist/Kernel.js +4 -4
  15. package/dist/Musket.cjs +2 -4
  16. package/dist/Musket.js +3 -3
  17. package/dist/Providers/ConsoleServiceProvider.cjs +12 -4
  18. package/dist/Providers/ConsoleServiceProvider.js +5 -5
  19. package/dist/chunk-23QH5R54.js +27 -0
  20. package/dist/chunk-2O2AYFAG.js +63 -0
  21. package/dist/chunk-3ASEWMRX.js +37 -0
  22. package/dist/chunk-3RX6CLNR.js +32 -0
  23. package/dist/chunk-3VCNSA6P.js +14 -0
  24. package/dist/chunk-3WHUADTN.js +6 -0
  25. package/dist/chunk-6OCHCPBP.js +36 -0
  26. package/dist/chunk-6OIH6FS4.js +32 -0
  27. package/dist/chunk-7EWRZPTX.js +63 -0
  28. package/dist/chunk-7PUQ5ZIN.js +6 -0
  29. package/dist/chunk-A5AONVOH.js +6 -0
  30. package/dist/chunk-ADIVRUAJ.js +27 -0
  31. package/dist/chunk-CCEWV2BR.js +39 -0
  32. package/dist/chunk-DXQTBFGG.js +31 -0
  33. package/dist/chunk-E4SSLXFT.js +63 -0
  34. package/dist/chunk-E5XIGIEX.js +14 -0
  35. package/dist/chunk-EIOQKTRM.js +104 -0
  36. package/dist/chunk-G4OE26TZ.js +33 -0
  37. package/dist/chunk-GVGO5OAK.js +8 -0
  38. package/dist/chunk-GXRCTWKL.js +16 -0
  39. package/dist/chunk-HVKW7JK4.js +8 -0
  40. package/dist/chunk-JXL4VJHZ.js +36 -0
  41. package/dist/chunk-K3GOQSS3.js +6 -0
  42. package/dist/chunk-KCJKQP37.js +133 -0
  43. package/dist/chunk-KZA3MC77.js +151 -0
  44. package/dist/chunk-LLL3V7LB.js +6 -0
  45. package/dist/chunk-LQ6DL2HS.js +68 -0
  46. package/dist/chunk-M4ZRDJJ2.js +68 -0
  47. package/dist/chunk-MAQAT3PU.js +32 -0
  48. package/dist/chunk-MPXPSSLJ.js +133 -0
  49. package/dist/chunk-NFRXMBRP.js +24 -0
  50. package/dist/chunk-NVPKTRMT.js +7 -0
  51. package/dist/chunk-ORPRWIQ2.js +33 -0
  52. package/dist/chunk-P7M5PEDY.js +18 -0
  53. package/dist/chunk-PBNCVQZC.js +6 -0
  54. package/dist/chunk-PYSJMSNM.js +27 -0
  55. package/dist/chunk-Q3OMG6YH.js +186 -0
  56. package/dist/chunk-QCNBVSFO.js +68 -0
  57. package/dist/chunk-QMEO4OUR.js +151 -0
  58. package/dist/chunk-QSQNELZQ.js +83 -0
  59. package/dist/chunk-RRP7K5LI.js +36 -0
  60. package/dist/chunk-T6OOKENF.js +6 -0
  61. package/dist/chunk-TBDROT3I.js +6356 -0
  62. package/dist/chunk-TH2RWMWA.js +133 -0
  63. package/dist/chunk-TJZCDDEV.js +36 -0
  64. package/dist/chunk-U6TOLKGJ.js +22 -0
  65. package/dist/chunk-UWCTG2LX.js +24 -0
  66. package/dist/chunk-WO2BXMBQ.js +6 -0
  67. package/dist/chunk-XAWZUZVP.js +32 -0
  68. package/dist/chunk-XCOSZXAE.js +133 -0
  69. package/dist/chunk-XD2Q7LWE.js +24 -0
  70. package/dist/chunk-XUYTJO6X.js +104 -0
  71. package/dist/chunk-YAYU7VOK.js +8 -0
  72. package/dist/chunk-YRUCICBV.js +24 -0
  73. package/dist/chunk-Z5XE72Q5.js +68 -0
  74. package/dist/chunk-ZTIO25VB.js +8 -0
  75. package/dist/index.cjs +29 -18
  76. package/dist/index.js +8 -8
  77. package/dist/lexer-DQCqS3nf-6W2BHF4T.js +68 -0
  78. package/dist/run.cjs +29 -18
  79. package/dist/run.js +8 -8
  80. package/package.json +13 -6
@@ -0,0 +1,83 @@
1
+ import {
2
+ __name
3
+ } from "./chunk-CCEWV2BR.js";
4
+
5
+ // src/Commands/Command.ts
6
+ var Command = class {
7
+ static {
8
+ __name(this, "Command");
9
+ }
10
+ app;
11
+ kernel;
12
+ constructor(app, kernel) {
13
+ this.app = app;
14
+ this.kernel = kernel;
15
+ }
16
+ /**
17
+ * The name and signature of the console command.
18
+ *
19
+ * @var string
20
+ */
21
+ signature;
22
+ /**
23
+ * A dictionary of signatures or what not.
24
+ *
25
+ * @var object
26
+ */
27
+ dictionary = {};
28
+ /**
29
+ * The console command description.
30
+ *
31
+ * @var string
32
+ */
33
+ description;
34
+ /**
35
+ * The console command input.
36
+ *
37
+ * @var object
38
+ */
39
+ input = {
40
+ options: {},
41
+ arguments: {}
42
+ };
43
+ /**
44
+ * Execute the console command.
45
+ */
46
+ async handle(..._args) {
47
+ }
48
+ setApplication(app) {
49
+ this.app = app;
50
+ }
51
+ setInput(options, args, regArgs, dictionary) {
52
+ this.dictionary = dictionary;
53
+ this.input.options = options;
54
+ this.input.arguments = regArgs.map((e, i) => ({
55
+ [e.name()]: args[i]
56
+ })).reduce((e, x) => Object.assign(e, x), {});
57
+ }
58
+ getSignature() {
59
+ return this.signature;
60
+ }
61
+ getDescription() {
62
+ return this.description;
63
+ }
64
+ option(key, def) {
65
+ return this.input.options[key] ?? def;
66
+ }
67
+ options(key) {
68
+ if (key) {
69
+ return this.input.options[key];
70
+ }
71
+ return this.input.options;
72
+ }
73
+ argument(key, def) {
74
+ return this.input.arguments[key] ?? def;
75
+ }
76
+ arguments() {
77
+ return this.input.arguments;
78
+ }
79
+ };
80
+
81
+ export {
82
+ Command
83
+ };
@@ -0,0 +1,36 @@
1
+ import {
2
+ providers_default
3
+ } from "./chunk-3VCNSA6P.js";
4
+ import {
5
+ Kernel
6
+ } from "./chunk-M4ZRDJJ2.js";
7
+ import {
8
+ __name
9
+ } from "./chunk-SHUYVCID.js";
10
+
11
+ // src/IO/app.ts
12
+ import { Application } from "@h3ravel/core";
13
+ import { EventEmitter } from "events";
14
+ var app_default = class {
15
+ static {
16
+ __name(this, "default");
17
+ }
18
+ async bootstrap() {
19
+ const app = new Application(process.cwd());
20
+ app.registerProviders(providers_default);
21
+ await app.registerConfiguredProviders();
22
+ await app.boot();
23
+ new Kernel(app);
24
+ new EventEmitter().once("SIGINT", () => process.exit(0));
25
+ process.on("SIGINT", () => {
26
+ process.exit(0);
27
+ });
28
+ process.on("SIGTERM", () => {
29
+ process.exit(0);
30
+ });
31
+ }
32
+ };
33
+
34
+ export {
35
+ app_default
36
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ app_default
3
+ } from "./chunk-ORPRWIQ2.js";
4
+
5
+ // src/run.ts
6
+ new app_default().bootstrap();