@@ -8,9 +8,17 @@ import (
88)
99
1010var helmCmd = & cobra.Command {
11- Use : "helm <app-name> [-c <compose-files>... ] [-e key=value...] [-f settings-file...]" ,
11+ Use : "helm [ <app-name>] [-s key=value...] [-f settings-file...]" ,
1212 Short : "Render the Compose file for this app as an Helm package" ,
13- Args : cli .RequiresMaxArgs (1 ),
13+ Long : `The helm command creates or updates the directory <app-name>.chart.
14+ - Chart.yaml is created or updated from the app's metadata.
15+ - values.yaml is created or updated with the values from settings which are
16+ actually used by the compose file.
17+ - 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.` ,
21+ Args : cli .RequiresMaxArgs (1 ),
1422 RunE : func (cmd * cobra.Command , args []string ) error {
1523 d , err := parseSettings (helmEnv )
1624 if err != nil {
@@ -29,6 +37,7 @@ func init() {
2937 rootCmd .AddCommand (helmCmd )
3038 if internal .Experimental == "on" {
3139 helmCmd .Flags ().StringArrayVarP (& helmComposeFiles , "compose-files" , "c" , []string {}, "Override Compose files" )
40+ helmCmd .Use += " [-c <compose-files>...]"
3241 }
3342 helmCmd .Flags ().StringArrayVarP (& helmSettingsFile , "settings-files" , "f" , []string {}, "Override settings files" )
3443 helmCmd .Flags ().StringArrayVarP (& helmEnv , "set" , "s" , []string {}, "Override environment values" )
0 commit comments