зеркало из https://github.com/microsoft/fabrikate.git
Default generated name to 'common' when no environment provided. (#101)
This commit is contained in:
Родитель
bc4062a9af
Коммит
2ebe17dc72
|
@ -74,6 +74,10 @@ func Generate(startPath string, environments []string, validate bool) (component
|
||||||
}
|
}
|
||||||
|
|
||||||
environmentName := strings.Join(environments, "-")
|
environmentName := strings.Join(environments, "-")
|
||||||
|
if len(environmentName) == 0 {
|
||||||
|
environmentName = "common"
|
||||||
|
}
|
||||||
|
|
||||||
generationPath := path.Join(startPath, "generated", environmentName)
|
generationPath := path.Join(startPath, "generated", environmentName)
|
||||||
|
|
||||||
if err = WriteGeneratedManifests(generationPath, components); err != nil {
|
if err = WriteGeneratedManifests(generationPath, components); err != nil {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче