ce-util/meta/plugins/__init__.py

22 lines
462 B
Python
Raw Normal View History

2024-06-12 09:09:09 +00:00
import cutekit
cutekit.ensure((0, 7, 0))
from cutekit import cli, model
@cli.command(None, "uti", "Manage uti definitions")
def _():
pass
@cli.command(None, "uti/graph", "Show uti graph")
def _(args: model.RegistryArgs):
r = model.Registry.use(args)
# Iter all components and finds revelants res/_uti.json
for c in r.iter(model.Manifest):
path = c.subpath("res/_uti.json")
if path.exists():
print(c.path, path)