Skip to content

Commit

Permalink
fix a __main__ file to allow profiling and expose the CommandId class
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-lolo committed Aug 22, 2024
1 parent 687b19f commit c020d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rats-apps/src/python/rats/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Uses `rats.cli` to streamline the creation of CLI commands written with Click."""

from ._annotations import command, get_class_commands, get_class_groups, group
from ._annotations import CommandId, command, get_class_commands, get_class_groups, group
from ._app import ClickApp
from ._container import CommandContainer
from ._plugin import PluginContainer, PluginServices
Expand All @@ -13,5 +13,6 @@
"group",
"ClickApp",
"PluginServices",
"CommandId",
"CommandContainer",
]
5 changes: 2 additions & 3 deletions rats-devtools/src/python/rats/devtools/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""rats-devtools provides tooling for building commands that help us develop the rats libraries."""

from ._app import run
from rats.devtools import run

if __name__ == "__main__":
run()
run()

0 comments on commit c020d98

Please sign in to comment.