ce-util/meta/plugins/__init__.py
2024-06-12 11:09:09 +02:00

22 lines
462 B
Python

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)