rats-apps 0.2.0.dev20240819175815__py3-none-any.whl → 0.2.0.dev20240819195355__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.
rats/cli/_annotations.py CHANGED
@@ -18,7 +18,8 @@ T = TypeVar("T", bound=Callable[[Any], Any])
18
18
  def command(command_id: CommandId = AUTO_COMMAND) -> Callable[..., apps.Executable]:
19
19
  def decorator(fn: T) -> T:
20
20
  if command_id == AUTO_COMMAND:
21
- return anns.annotation("commands", CommandId(fn.__name__.replace("_", "-")))(fn)
21
+ cmd_name = fn.__name__.replace("_", "-").strip("-")
22
+ return anns.annotation("commands", CommandId(cmd_name))(fn)
22
23
  return anns.annotation("commands", command_id)(fn)
23
24
 
24
25
  return decorator # type: ignore[reportReturnType]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rats-apps
3
- Version: 0.2.0.dev20240819175815
3
+ Version: 0.2.0.dev20240819195355
4
4
  Summary: research analysis tools for building applications
5
5
  Home-page: https://github.com/microsoft/rats/
6
6
  License: MIT
@@ -19,7 +19,7 @@ rats/apps/_static_container.py,sha256=5lzLh1CUoQVwhxfDhK6ZOQaBrPpudbRHWJkaDppphZ
19
19
  rats/apps/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  rats/cli/__init__.py,sha256=_g9xWv6Uy73AudzCn-A9JKP-IpfZMRgvoO1b64dAxPw,464
21
21
  rats/cli/__main__.py,sha256=3JZ7mrTTrrODQHutefm2zJp1-cQQB7I5-1xhYw7SMBU,1656
22
- rats/cli/_annotations.py,sha256=xSOfGFRYI2s9MTUdXgJ-ZcgcaD6EntZpiAuMqAVh0sI,1316
22
+ rats/cli/_annotations.py,sha256=5voM1pNm7iybZpgQTSVpaq3rMIMz33jr4eUyoEmxWJ4,1359
23
23
  rats/cli/_app.py,sha256=NjJfXKZYBdd1CZuLbrXyUFB_wRJQah1Rvtxe_zj4y_M,641
24
24
  rats/cli/_container.py,sha256=VddjrsH1lqiarJ6rXf4KUbuNtNXEduCr38UH_TwGgFE,1872
25
25
  rats/cli/_plugin.py,sha256=o5emP-E0LLOGvD14ZBYNY6h407pngrJf8ODMB5Wdd8U,711
@@ -27,7 +27,7 @@ rats/cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  rats/logs/__init__.py,sha256=fCn4pfpYiAcTtt5CsnUZX68CjOB3KJHxMSiYxsma4qE,183
28
28
  rats/logs/_plugin.py,sha256=eAAG4ci-XS9A9ituXj9PrcI6zH-xlCqhJlUbSGC-MYM,2175
29
29
  rats/logs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- rats_apps-0.2.0.dev20240819175815.dist-info/METADATA,sha256=0YCPv-siBeq97V-bwrV4wTWoN0a60OYcMrvUh9UGp6Q,774
31
- rats_apps-0.2.0.dev20240819175815.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- rats_apps-0.2.0.dev20240819175815.dist-info/entry_points.txt,sha256=9oOvf2loQr5ACWQgvuu9Q3KZIVIxKE5Aa-rLuUII5WQ,91
33
- rats_apps-0.2.0.dev20240819175815.dist-info/RECORD,,
30
+ rats_apps-0.2.0.dev20240819195355.dist-info/METADATA,sha256=peSsBsdtUIs8jl1-4A7sC7SdZ9ccvWivTgPPk2ENKbA,774
31
+ rats_apps-0.2.0.dev20240819195355.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ rats_apps-0.2.0.dev20240819195355.dist-info/entry_points.txt,sha256=9oOvf2loQr5ACWQgvuu9Q3KZIVIxKE5Aa-rLuUII5WQ,91
33
+ rats_apps-0.2.0.dev20240819195355.dist-info/RECORD,,