package resolution import ( mcat "git.novox.be/novox/mesh-sdk/go/catalogue" ) // runByAResource is the artifacts one of a module's own resources names — a process that runs it, // a step, an archive that unpacks it — by name. func runByAResource(m mcat.Manifest) map[string]bool { named := map[string]bool{} for _, r := range m.Resources { if a, ok := r["artifact"].(string); ok && a != "" { named[a] = true } } return named } // RunByAResource is the bundles of m one of its own resources runs (its service, not its tools). func RunByAResource(m mcat.Manifest) map[string]bool { return runByAResource(m) }