orionis 0.463.0__py3-none-any.whl → 0.465.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.
@@ -0,0 +1,68 @@
1
+ from orionis.console.base.command import BaseCommand
2
+ from orionis.console.contracts.reactor import IReactor
3
+ from orionis.console.exceptions import CLIOrionisRuntimeError
4
+ from rich.console import Console
5
+ from rich.panel import Panel
6
+
7
+ class WorkFlowGithubCommand(BaseCommand):
8
+ """
9
+ Command class to display usage information for the Orionis CLI.
10
+ """
11
+
12
+ # Indicates whether timestamps will be shown in the command output
13
+ timestamps: bool = False
14
+
15
+ # Command signature and description
16
+ signature: str = "__workflow__"
17
+
18
+ # Command description
19
+ description: str = "Displays usage information, examples, and a list of available commands in the Orionis CLI."
20
+
21
+ def handle(self, reactor: IReactor) -> None:
22
+ """
23
+ Displays usage information and a list of available commands for the Orionis CLI.
24
+
25
+ Parameters
26
+ ----------
27
+ reactor : IReactor
28
+ The reactor instance providing command metadata via the `info()` method.
29
+
30
+ Returns
31
+ -------
32
+ None
33
+ This method does not return any value. It prints help information to the console.
34
+
35
+ Raises
36
+ ------
37
+ CLIOrionisRuntimeError
38
+ If an unexpected error occurs during help information generation or display.
39
+ """
40
+ try:
41
+
42
+ # Execute test suite
43
+ response: dict = reactor.call("test")
44
+
45
+ # Determinar si existieron errores en el test suite
46
+ failed = response.get("failed", 0)
47
+ errors = response.get("errors", 0)
48
+
49
+ # If there are any failed tests, print a warning message
50
+ if failed > 0 or errors > 0:
51
+ console = Console()
52
+ console.print(
53
+ Panel(
54
+ f"Tests failed: {failed}, Errors: {errors}",
55
+ title="Test Suite Results",
56
+ style="bold red"
57
+ )
58
+ )
59
+
60
+ # If there are failed tests, we do not proceed with the publishing
61
+ raise CLIOrionisRuntimeError(
62
+ "Test suite failed. Please fix the issues before proceeding with the workflow."
63
+ )
64
+
65
+ except Exception as e:
66
+
67
+ # Raise a custom runtime error if any exception occurs
68
+ raise CLIOrionisRuntimeError(f"An unexpected error occurred: {e}") from e
@@ -104,13 +104,15 @@ class Reactor(IReactor):
104
104
  from orionis.console.commands.help import HelpCommand
105
105
  from orionis.console.commands.test import TestCommand
106
106
  from orionis.console.commands.publisher import PublisherCommand
107
+ from orionis.console.commands.workflow import WorkFlowGithubCommand
107
108
 
108
109
  # List of core command classes to load (extend this list as more core commands are added)
109
110
  core_commands = [
110
111
  VersionCommand,
111
112
  HelpCommand,
112
113
  TestCommand,
113
- PublisherCommand
114
+ PublisherCommand,
115
+ WorkFlowGithubCommand
114
116
  ]
115
117
 
116
118
  # Iterate through the core command classes and register them
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.463.0"
8
+ VERSION = "0.465.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.463.0
3
+ Version: 0.465.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
@@ -15,12 +15,13 @@ orionis/console/commands/help.py,sha256=ooPoenP08ArMAWiL89_oUGD9l1Faen2QjLTG90i4
15
15
  orionis/console/commands/publisher.py,sha256=FUg-EUzK7LLXsla10ZUZro8V0Z5S-KjmsaSdRHSSGbA,21381
16
16
  orionis/console/commands/test.py,sha256=mWPB_m_nUrsakCT1N6fcCBYU9mYj1IC39n3ICbQp8SQ,2128
17
17
  orionis/console/commands/version.py,sha256=SUuNDJ40f2uq69OQUmPQXJKaa9Bm_iVRDPmBd7zc1Yc,3658
18
+ orionis/console/commands/workflow.py,sha256=NYOmjTSvm2o6AE4h9LSTZMFSYPQreNmEJtronyOxaYk,2451
18
19
  orionis/console/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
20
  orionis/console/contracts/kernel.py,sha256=mh4LlhEYHh3FuGZZQ0GBhD6ZLa5YQvaNj2r01IIHI5Y,826
20
21
  orionis/console/contracts/reactor.py,sha256=GGhWSNYBE6E_W3HNEi4kjiDwqohsa-nnwJfoC1nJPM8,1998
21
22
  orionis/console/contracts/schedule.py,sha256=A7yYPjPmRizDHOR9k4qvY3NuRPrWBmNuQs6ENGXWtBs,70
22
23
  orionis/console/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- orionis/console/core/reactor.py,sha256=WDp6sfMR5tpjDoXxPNHn8CpX_IFmqY4hOxofWGOVREg,23357
24
+ orionis/console/core/reactor.py,sha256=YMVoWVYaGX0eY4oTfVWraPGfVzeK_Zcug-fdr1GffJo,23470
24
25
  orionis/console/dumper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
26
  orionis/console/dumper/dump.py,sha256=CATERiQ6XuIrKQsDaWcVxzTtlAJI9qLJX44fQxEX8ws,22443
26
27
  orionis/console/dumper/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -188,7 +189,7 @@ orionis/foundation/providers/reactor_provider.py,sha256=P0KQcp4AFKTrD6BStGfCTqhG
188
189
  orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
189
190
  orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
190
191
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
191
- orionis/metadata/framework.py,sha256=WO2w62AAh3yxysXPQDWI-aoUuRqpJhDdEm02Mcyosrc,4088
192
+ orionis/metadata/framework.py,sha256=vcwSri5it1aWF1XEEjj4JeQXdTN59p4y_Ko4jElq4oA,4088
192
193
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
193
194
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
194
195
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -354,7 +355,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
354
355
  orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
355
356
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
356
357
  orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
357
- orionis-0.463.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
358
+ orionis-0.465.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
358
359
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
360
  tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
360
361
  tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -497,8 +498,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
497
498
  tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
498
499
  tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
499
500
  tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
500
- orionis-0.463.0.dist-info/METADATA,sha256=aPxvy48KCjFLfuzFKrU4jKuQdSbIfoq7RqbaOyMN4Wc,4772
501
- orionis-0.463.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
502
- orionis-0.463.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
503
- orionis-0.463.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
504
- orionis-0.463.0.dist-info/RECORD,,
501
+ orionis-0.465.0.dist-info/METADATA,sha256=Ktv6GtcZC8IaiQHQuOBchnAr9v3CGpIRnZ4M8tmeFlM,4772
502
+ orionis-0.465.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
503
+ orionis-0.465.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
504
+ orionis-0.465.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
505
+ orionis-0.465.0.dist-info/RECORD,,