orionis 0.503.0__py3-none-any.whl → 0.504.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.
- orionis/console/core/reactor.py +6 -12
- orionis/console/kernel.py +1 -4
- orionis/metadata/framework.py +1 -1
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/METADATA +1 -1
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/RECORD +9 -9
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/WHEEL +0 -0
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/top_level.txt +0 -0
- {orionis-0.503.0.dist-info → orionis-0.504.0.dist-info}/zip-safe +0 -0
orionis/console/core/reactor.py
CHANGED
|
@@ -11,7 +11,6 @@ from orionis.console.exceptions import CLIOrionisValueError
|
|
|
11
11
|
from orionis.console.exceptions.cli_runtime_error import CLIOrionisRuntimeError
|
|
12
12
|
from orionis.console.output.contracts.console import IConsole
|
|
13
13
|
from orionis.console.output.contracts.executor import IExecutor
|
|
14
|
-
from orionis.container.exceptions.exception import OrionisContainerException
|
|
15
14
|
from orionis.foundation.contracts.application import IApplication
|
|
16
15
|
from orionis.services.introspection.modules.reflection import ReflectionModule
|
|
17
16
|
from orionis.services.log.contracts.log_service import ILogger
|
|
@@ -455,8 +454,12 @@ class Reactor(IReactor):
|
|
|
455
454
|
# Parse the provided arguments using the command's ArgumentParser
|
|
456
455
|
parsed_args = command.args.parse_args(args)
|
|
457
456
|
except SystemExit:
|
|
458
|
-
#
|
|
459
|
-
raise
|
|
457
|
+
# Raise a CLIOrionisRuntimeError with the help message included in the exception
|
|
458
|
+
raise CLIOrionisRuntimeError(
|
|
459
|
+
f"Failed to parse arguments for command '{command.signature}'.\n"
|
|
460
|
+
f"{command.args.format_help()}\n"
|
|
461
|
+
"Please check the command syntax and available options."
|
|
462
|
+
)
|
|
460
463
|
|
|
461
464
|
# Convert the parsed arguments to a dictionary and return
|
|
462
465
|
if isinstance(parsed_args, argparse.Namespace):
|
|
@@ -583,12 +586,6 @@ class Reactor(IReactor):
|
|
|
583
586
|
|
|
584
587
|
except Exception as e:
|
|
585
588
|
|
|
586
|
-
# Display the error message in the console (without timestamp)
|
|
587
|
-
if isinstance(e, OrionisContainerException):
|
|
588
|
-
pass
|
|
589
|
-
elif isinstance(e, CLIOrionisRuntimeError):
|
|
590
|
-
self.__console.error(f"An error occurred while executing command '{signature}': {e}", timestamp=False)
|
|
591
|
-
|
|
592
589
|
# Log the error in the logger service
|
|
593
590
|
self.__logger.error(f"Command '{signature}' execution failed: {e}")
|
|
594
591
|
|
|
@@ -677,9 +674,6 @@ class Reactor(IReactor):
|
|
|
677
674
|
|
|
678
675
|
except Exception as e:
|
|
679
676
|
|
|
680
|
-
# Display the error message in the console (without timestamp)
|
|
681
|
-
self.__console.error(f"An error occurred while executing command '{signature}': {e}", timestamp=False)
|
|
682
|
-
|
|
683
677
|
# Log the error in the logger service
|
|
684
678
|
self.__logger.error(f"Command '{signature}' execution failed: {e}")
|
|
685
679
|
|
orionis/console/kernel.py
CHANGED
|
@@ -103,7 +103,4 @@ class KernelCLI(IKernelCLI):
|
|
|
103
103
|
except BaseException as e:
|
|
104
104
|
|
|
105
105
|
# Catch any exceptions that occur during command handling
|
|
106
|
-
self.__catch.exception(self, args, e)
|
|
107
|
-
|
|
108
|
-
# Exit the process with a non-zero status code to indicate an error
|
|
109
|
-
sys.exit(1)
|
|
106
|
+
self.__catch.exception(self, args, e)
|
orionis/metadata/framework.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
orionis/app.py,sha256=b69fOzj2J8Aw5g0IldWZXixUDeeTO9vcHc_Njses9HU,603
|
|
3
3
|
orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
orionis/console/kernel.py,sha256=
|
|
4
|
+
orionis/console/kernel.py,sha256=KPFKnz5zkWytB0-UNdsV9t_1m2tyA6TLc4mDA2q8v5o,4042
|
|
5
5
|
orionis/console/args/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
orionis/console/args/argument.py,sha256=Is8Z8_kW4DvcK1nK1UU-sa6Pk0BeOdcRczCayW0ZVHc,20360
|
|
7
7
|
orionis/console/args/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -28,7 +28,7 @@ orionis/console/contracts/listener.py,sha256=tXp2kTVEaqLRWZC6BY8xqj3JP0xpDDx4btP
|
|
|
28
28
|
orionis/console/contracts/reactor.py,sha256=Xeq7Zrw6WE5MV_XOQfiQEchAFbb6-0TjLpjWOxYW--g,4554
|
|
29
29
|
orionis/console/contracts/schedule.py,sha256=eGjcOH7kgdf0fWDZRfOFUQsIx4E8G38ayX5JwpkpN8E,4977
|
|
30
30
|
orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
orionis/console/core/reactor.py,sha256=
|
|
31
|
+
orionis/console/core/reactor.py,sha256=FMf64avmcuC1JtdjC8LLrgPuhp_Nau9Q_LcLl6JJ6DM,30278
|
|
32
32
|
orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
|
|
34
34
|
orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -218,7 +218,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
218
218
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
219
219
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
220
220
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
221
|
-
orionis/metadata/framework.py,sha256=
|
|
221
|
+
orionis/metadata/framework.py,sha256=AYMbt2P-GM7ooLNwbP6C8foJqalDU8Fe9MK2UqIr8PA,4109
|
|
222
222
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
223
223
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
224
224
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -394,7 +394,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
394
394
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
395
395
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
396
396
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
397
|
-
orionis-0.
|
|
397
|
+
orionis-0.504.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
398
398
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
399
399
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
400
400
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -541,8 +541,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
541
541
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
542
542
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
543
543
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
544
|
-
orionis-0.
|
|
545
|
-
orionis-0.
|
|
546
|
-
orionis-0.
|
|
547
|
-
orionis-0.
|
|
548
|
-
orionis-0.
|
|
544
|
+
orionis-0.504.0.dist-info/METADATA,sha256=ZM434O0Rv0eXh9QC4jQvPXabW2jM6BwmZmOGUrgSJE0,4801
|
|
545
|
+
orionis-0.504.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
546
|
+
orionis-0.504.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
547
|
+
orionis-0.504.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
548
|
+
orionis-0.504.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|