DockerCLI/cli/compose/template
Vincent Demeester afb87e42f2
Add a new `ExtractVariables` function to `compose/template` package
It allows to get easily all the variables defined in a
composefile (the `map[string]interface{}` representation that
`loader.ParseYAML` returns at least) and their default value too.

This commit also does some small function extract on substitution
funcs to reduce a tiny bit duplication.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-08-01 16:12:49 +02:00
..
template.go Add a new `ExtractVariables` function to `compose/template` package 2018-08-01 16:12:49 +02:00
template_test.go Add a new `ExtractVariables` function to `compose/template` package 2018-08-01 16:12:49 +02:00