orionis 0.541.0__py3-none-any.whl → 0.543.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/kernel.py +22 -6
- orionis/metadata/framework.py +1 -1
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/METADATA +1 -1
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/RECORD +8 -8
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/WHEEL +0 -0
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/top_level.txt +0 -0
- {orionis-0.541.0.dist-info → orionis-0.543.0.dist-info}/zip-safe +0 -0
orionis/console/kernel.py
CHANGED
|
@@ -37,9 +37,6 @@ class KernelCLI(IKernelCLI):
|
|
|
37
37
|
f"Failed to initialize TestKernel: expected IApplication, got {type(app).__module__}.{type(app).__name__}."
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
-
# Store the application container as a private attribute for internal use
|
|
41
|
-
self.__app: IApplication = app
|
|
42
|
-
|
|
43
40
|
# Retrieve and initialize the reactor instance from the application container.
|
|
44
41
|
# The reactor is responsible for dispatching CLI commands.
|
|
45
42
|
self.__reactor: IReactor = app.make('x-orionis.console.core.reactor')
|
|
@@ -94,8 +91,27 @@ class KernelCLI(IKernelCLI):
|
|
|
94
91
|
|
|
95
92
|
except BaseException as e:
|
|
96
93
|
|
|
97
|
-
#
|
|
98
|
-
command = args[0] if args else "__unknown__"
|
|
94
|
+
# Extract command name for error handling, with fallback for edge cases
|
|
95
|
+
command = args[0] if args and len(args) > 0 else "__unknown__"
|
|
96
|
+
|
|
97
|
+
# Prepare command arguments as dictionary for CLIRequest
|
|
98
|
+
command_args = {}
|
|
99
|
+
if args and len(args) > 1:
|
|
100
|
+
for arg in args[1:]:
|
|
101
|
+
if '=' in arg:
|
|
102
|
+
key, value = arg.split('=', 1)
|
|
103
|
+
# Remove -- prefix if present
|
|
104
|
+
if key.startswith('--'):
|
|
105
|
+
key = key[2:]
|
|
106
|
+
command_args[key] = value
|
|
107
|
+
else:
|
|
108
|
+
# If it's a flag (starts with --) or just a flag name, set flag=flag
|
|
109
|
+
if arg.startswith('--'):
|
|
110
|
+
flag_name = arg[2:] # Remove --
|
|
111
|
+
command_args[flag_name] = flag_name
|
|
112
|
+
else:
|
|
113
|
+
# For regular arguments without =, set arg=arg
|
|
114
|
+
command_args[arg] = arg
|
|
99
115
|
|
|
100
116
|
# Catch any exceptions that occur during command handling
|
|
101
|
-
self.__catch.exception(self, CLIRequest(command,
|
|
117
|
+
self.__catch.exception(self, CLIRequest(command, command_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=foCcJAfebeZD69wsAiNvPUx_7UMK6w8ow5WpVjzwDDk,1131
|
|
3
3
|
orionis/console/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
orionis/console/kernel.py,sha256=
|
|
4
|
+
orionis/console/kernel.py,sha256=3QCCVSQ3emAWRvdLloRlQ2wVszynGRA_ybWQaLgXxnA,4896
|
|
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
|
|
@@ -243,7 +243,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=1do4B09bU_6xbFHHVYYTGM
|
|
|
243
243
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
244
244
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
245
245
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
246
|
-
orionis/metadata/framework.py,sha256=
|
|
246
|
+
orionis/metadata/framework.py,sha256=Z1gFz5sdJke1mQTFUFOa3CVWcpesiKvAqNk7B60_Vgk,4109
|
|
247
247
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
248
248
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
249
249
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -434,7 +434,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
434
434
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
435
435
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
436
436
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
437
|
-
orionis-0.
|
|
437
|
+
orionis-0.543.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
438
438
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
439
439
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
440
440
|
tests/container/context/test_manager.py,sha256=wOwXpl9rHNfTTexa9GBKYMwK0_-KSQPbI-AEyGNkmAE,1356
|
|
@@ -580,8 +580,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
580
580
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
581
581
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
582
582
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
583
|
-
orionis-0.
|
|
584
|
-
orionis-0.
|
|
585
|
-
orionis-0.
|
|
586
|
-
orionis-0.
|
|
587
|
-
orionis-0.
|
|
583
|
+
orionis-0.543.0.dist-info/METADATA,sha256=g5VC9u9O-f4wRz3puIJDhxNzf0ngE6Bfn75TobnMh3s,4801
|
|
584
|
+
orionis-0.543.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
585
|
+
orionis-0.543.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
586
|
+
orionis-0.543.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
587
|
+
orionis-0.543.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|