mirror of https://github.com/databricks/cli.git
Store specified environment in configuration for reference (#104)
This commit is contained in:
parent
761de12a0d
commit
5c916a6fb4
|
@ -10,4 +10,7 @@ type Bundle struct {
|
||||||
// TODO
|
// TODO
|
||||||
// Default warehouse to run SQL on.
|
// Default warehouse to run SQL on.
|
||||||
// DefaultWarehouse string `json:"default_warehouse,omitempty"`
|
// DefaultWarehouse string `json:"default_warehouse,omitempty"`
|
||||||
|
|
||||||
|
// Environment is set by the mutator that selects the environment.
|
||||||
|
Environment string `json:"environment,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,9 @@ func (m *selectEnvironment) Apply(root *config.Root) ([]Mutator, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Store specified environment in configuration for reference.
|
||||||
|
root.Bundle.Environment = m.name
|
||||||
|
|
||||||
// Clear environments after loading.
|
// Clear environments after loading.
|
||||||
root.Environments = nil
|
root.Environments = nil
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
Loading…
Reference in New Issue