Ejemplo n.º 1
0
// Merge the second command entry into the first and return a reference
// to the first.
func Merge(a, b *Config) {
	common.Merge(&a.Config, &b.Config)

	if b.Name != "" {
		a.Name = b.Name
	}

	a.Deployments = append(a.Deployments, b.Deployments...)
}
Ejemplo n.º 2
0
// Merge the second command entry into the first and return a reference
// to the first.
func Merge(a, b *Config) {
	common.Merge(&a.Config, &b.Config)
}