// GetConfigFilesListFromConfigDir reads the configuration for Cobalt from a
// directory on the file system (See ReadConfigFromDir) and returns the list
// of files which constitute the configuration. The purpose is generating a
// list of dependencies.
GetConfigFilesListFromConfigDir reads the configuration for Cobalt from a
directory on the file system (See ReadConfigFromDir) and returns the list
of files which constitute the configuration. The purpose is generating a
list of dependencies.
// GetConfigFilesListFromConfigDir reads the configuration for Cobalt from a // directory on the file system ( See ReadConfigFromDir ) and returns the list // of files which constitute the configuration . The purpose is generating a // list of dependencies .
func GetConfigFilesListFromConfigDir(rootDir string) (files []string, err error) {
	r, err := newConfigDirReader(rootDir)
	if err != nil {
		return files, err
	}
	l := []projectConfig{}
	if err := readProjectsList(r, &l); err != nil {
		return files, err
	}
	files = append(files, r.customersFilePath())
	for i, _ := range l {
		c := &(l[i])
		files = append(files, r.projectFilePath(c.customerName, c.projectName))
	}
	return files, nil
}
func GetConfigFilesListFromConfigDir ( rootDir string ) ( files [ ] string , err error ) { r , err := newConfigDirReader ( rootDir ) if err != nil { return files , err } l := [ ] projectConfig { } if err := readProjectsList ( r , & l ) ; err != nil { return files , err } files = append ( files , r . customersFilePath ( ) ) for i , _ := range l { c := & ( l [ i ] ) files = append ( files , r . projectFilePath ( c . customerName , c . projectName ) ) } return files , nil }
GetConfigFilesListFromConfigDir reads the configuration for Cobalt from a
directory on the file system (See ReadConfigFromDir) and returns the list
of files which constitute the configuration.
GetConfigFilesListFromConfigDir reads the configuration for Cobalt from a directory on the file system ( See ReadConfigFromDir ) and returns the list of files which constitute the configuration .