ParseModuleConfig loads the local config file for a module and parses the yaml
(source string)
| 34 | |
| 35 | // ParseModuleConfig loads the local config file for a module and parses the yaml |
| 36 | func ParseModuleConfig(source string) (moduleconfig.ModuleConfig, error) { |
| 37 | localPath := GetSourceDir(source) |
| 38 | config := moduleconfig.ModuleConfig{} |
| 39 | configPath := path.Join(localPath, constants.ZeroModuleYml) |
| 40 | config, err := moduleconfig.LoadModuleConfig(configPath) |
| 41 | return config, err |
| 42 | } |
| 43 | |
| 44 | // GetSourcePath gets a unique local source directory name. For local modules, it use the local directory |
| 45 | func GetSourceDir(source string) string { |