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)