MCPcopy Create free account
hub / github.com/cortexproject/cortex / DumpYaml

Function DumpYaml

cmd/cortex/main.go:270–277  ·  view source on GitHub ↗
(cfg *cortex.Config)

Source from the content-addressed store, hash-verified

268}
269
270func 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.

Callers 1

mainFunction · 0.85

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected