orionis 0.618.0__py3-none-any.whl → 0.619.0__py3-none-any.whl

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.
@@ -16,6 +16,7 @@ from orionis.console.exceptions import CLIOrionisTypeError
16
16
  from orionis.console.request.cli_request import CLIRequest
17
17
  from orionis.foundation.contracts.application import IApplication
18
18
  from orionis.services.introspection.concretes.reflection import ReflectionConcrete
19
+ from orionis.services.introspection.instances.reflection import ReflectionInstance
19
20
  from orionis.services.introspection.modules.reflection import ReflectionModule
20
21
  from orionis.services.log.contracts.log_service import ILogger
21
22
  from orionis.support.performance.contracts.counter import IPerformanceCounter
@@ -76,20 +77,6 @@ class Reactor(IReactor):
76
77
  # List to hold fluent command definitions
77
78
  self.__fluent_commands: List[ICommand] = []
78
79
 
79
- # Load core commands immediately upon initialization
80
- self.__loadCoreCommands()
81
- self.__load__core_commands: bool = True
82
-
83
- # Load custom user-defined commands from the project's commands directory
84
- self.__loadCustomCommands()
85
- self.__load__custom_commands: bool = True
86
-
87
- # Flag to track if fluent commands have been loaded
88
- self.__loadFluentCommands()
89
- self.__load_fluent_commands: bool = True
90
-
91
- print("Clase inicializada reactor")
92
-
93
80
  def __loadCommands(self) -> None:
94
81
  """
95
82
  Loads all available commands into the reactor's internal registry.
@@ -126,17 +113,17 @@ class Reactor(IReactor):
126
113
  """
127
114
 
128
115
  # Load core commands if they have not been loaded yet
129
- if not self.__load__core_commands:
116
+ if not hasattr(self, '_Reactor__load__core_commands') or not self.__load__core_commands:
130
117
  self.__loadCoreCommands()
131
118
  self.__load__core_commands = True
132
119
 
133
120
  # Load custom user-defined commands if they have not been loaded yet
134
- if not self.__load__custom_commands:
121
+ if not hasattr(self, '_Reactor__load__custom_commands') or not self.__load__custom_commands:
135
122
  self.__loadCustomCommands()
136
123
  self.__load__custom_commands = True
137
124
 
138
125
  # Load fluent interface commands if they have not been loaded yet
139
- if not self.__load_fluent_commands:
126
+ if not hasattr(self, '_Reactor__load_fluent_commands') or not self.__load_fluent_commands:
140
127
  self.__loadFluentCommands()
141
128
  self.__load_fluent_commands = True
142
129
 
@@ -860,7 +847,10 @@ class Reactor(IReactor):
860
847
 
861
848
  # Inject parsed arguments into the command instance
862
849
  dict_args = self.__parseArgs(command, args)
863
- command_instance.setArguments(dict_args.copy())
850
+
851
+ # Only set arguments if the command instance has a setArguments method
852
+ if ReflectionInstance(command_instance).hasMethod('setArguments'):
853
+ command_instance.setArguments(dict_args.copy())
864
854
 
865
855
  # Inject a scoped CLIRequest instance into the application container for the command's context
866
856
  self.__app.scopedInstance(ICLIRequest, CLIRequest(
@@ -963,7 +953,10 @@ class Reactor(IReactor):
963
953
 
964
954
  # Inject parsed arguments into the command instance
965
955
  dict_args = self.__parseArgs(command, args)
966
- command_instance.setArguments(dict_args.copy())
956
+
957
+ # Only set arguments if the command instance has a setArguments method
958
+ if ReflectionInstance(command_instance).hasMethod('setArguments'):
959
+ command_instance.setArguments(dict_args.copy())
967
960
 
968
961
  # Inject a scoped CLIRequest instance into the application container for the command's context
969
962
  self.__app.scopedInstance(ICLIRequest, CLIRequest(
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.618.0"
8
+ VERSION = "0.619.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.618.0
3
+ Version: 0.619.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -32,7 +32,7 @@ orionis/console/contracts/reactor.py,sha256=iT6ShoCutAWEeJzOf_PK7CGXi9TgrOD5tewH
32
32
  orionis/console/contracts/schedule.py,sha256=N-AYUa1CJY7a4CV9L1EX_EUDtGlDJMg4y0aV9EDby1Q,16090
33
33
  orionis/console/contracts/schedule_event_listener.py,sha256=h06qsBxuEMD3KLSyu0JXdUDHlQW19BX9lA09Qrh2QXg,3818
34
34
  orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
- orionis/console/core/reactor.py,sha256=vD1R9bocjhqYtxT93cSh6kcsWDkQd6sVPHvjJp9RVB8,43744
35
+ orionis/console/core/reactor.py,sha256=6scyrKukt6BEcLBxIrfAKA8QYnvNTl2dXePw6IWGPUw,43831
36
36
  orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  orionis/console/dumper/debug.py,sha256=p8uflSXeDJDrVM9mZY4JMYEus73Z6TsLnQQtgP0QUak,22427
38
38
  orionis/console/dynamic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -216,7 +216,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
216
216
  orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
217
217
  orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
218
218
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
219
- orionis/metadata/framework.py,sha256=9hzxpLNKGeHX8nD4qYpk_VAwNdd-Am_7SvUj-9mCLW4,4109
219
+ orionis/metadata/framework.py,sha256=61h0HSRONEMs2j2UbfPMMmDgNiUQj4Ja69HFKij8m5Y,4109
220
220
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
221
221
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
222
222
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -403,8 +403,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
403
403
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
404
404
  orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
405
405
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
406
- orionis-0.618.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
407
- orionis-0.618.0.dist-info/METADATA,sha256=uUFuSeGcoS3u6GH1y99DAqbu-jQx7ZQ9P57Djm1uFnY,4801
408
- orionis-0.618.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
409
- orionis-0.618.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
410
- orionis-0.618.0.dist-info/RECORD,,
406
+ orionis-0.619.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
407
+ orionis-0.619.0.dist-info/METADATA,sha256=tCQmpJ_jyBbcIBktkP73KfZSrukZhR9WepYwza5fDfw,4801
408
+ orionis-0.619.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
409
+ orionis-0.619.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
410
+ orionis-0.619.0.dist-info/RECORD,,