@@ -15,9 +15,7 @@ var helmCmd = &cobra.Command{
1515- values.yaml is created or updated with the values from settings which are
1616 actually used by the compose file.
1717- templates/stack.yaml is created, with a stack template extracted from the app's
18- docker-compose.yml. If the --render option is used, the docker-compose.yml will
19- be rendered instead of exported as a template. Note that template export will
20- not work if you use go templating, only variable substitution is supported.` ,
18+ docker-compose.yml.` ,
2119 Args : cli .RequiresMaxArgs (1 ),
2220 RunE : func (cmd * cobra.Command , args []string ) error {
2321 d , err := parseSettings (helmEnv )
@@ -38,8 +36,10 @@ func init() {
3836 if internal .Experimental == "on" {
3937 helmCmd .Flags ().StringArrayVarP (& helmComposeFiles , "compose-files" , "c" , []string {}, "Override Compose files" )
4038 helmCmd .Use += " [-c <compose-files>...]"
39+ helmCmd .Flags ().BoolVarP (& helmRender , "render" , "r" , false , "Render the template instead of exporting it" )
40+ helmCmd .Long += ` If the --render option is used, the docker-compose.yml will
41+ be rendered instead of exported as a template.`
4142 }
4243 helmCmd .Flags ().StringArrayVarP (& helmSettingsFile , "settings-files" , "f" , []string {}, "Override settings files" )
4344 helmCmd .Flags ().StringArrayVarP (& helmEnv , "set" , "s" , []string {}, "Override settings values" )
44- helmCmd .Flags ().BoolVarP (& helmRender , "render" , "r" , false , "Render the template instead of exporting it" )
4545}
0 commit comments