func()

in astro/astro.go [103:114]


func (c *Project) modules(moduleNames []string) []*module {
	results := []*module{}
	for _, moduleConfig := range c.config.Modules {
		// skip, if we're filtering and this module doesn't match the filter
		if moduleNames != nil && !utils.StringSliceContains(moduleNames, moduleConfig.Name) {
			logger.Trace.Printf("astro: ignoring module %v as it does not match filter", moduleConfig.Name)
			continue
		}
		results = append(results, newModule(moduleConfig))
	}
	return results
}