(cfg *cortex.Config)
| 268 | } |
| 269 | |
| 270 | func DumpYaml(cfg *cortex.Config) { |
| 271 | out, err := yaml.Marshal(cfg) |
| 272 | if err != nil { |
| 273 | fmt.Fprintln(os.Stderr, err) |
| 274 | } else { |
| 275 | fmt.Printf("%s\n", out) |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | // expandEnv replaces ${var} or $var in config according to the values of the current environment variables. |
| 280 | // The replacement is case-sensitive. References to undefined variables are replaced by the empty string. |