Commit 111e1796
111e17963719Merged
Svyatoslav Dumchenko <[email protected]> ยท 5 years ago ยท 4 files ยท ~4 modified
Description
Make plan subcommands
Details
- Commit
- 111e17963719
- Parent
- 5801a66448fe
cmd/helmwave/commands.gomodifiedView file
@@ -10,29 +10,59 @@
1010
Name: "yml",1111
Usage: "๐ Render helmwave.yml.tpl -> helmwave.yml",1212
Action: app.CliYml,13-
},14-
{15-
Name: "planfile",16-
Aliases: []string{"plan"},17-
Usage: "๐ Generate planfile to plandir",18-
Action: app.CliPlan,13+
Before: app.InitApp,1914
},15+
planCommand(),2016
{2117
Name: "deploy",2218
Aliases: []string{"apply", "sync", "release"},2319
Usage: "๐ฅ Deploy your helmwave!",2420
Action: app.CliDeploy,21+
Before: app.InitApp,2522
},2623
{2724
Name: "manifest",2825
Aliases: []string{"manifest"},2926
Usage: "๐ฅ Fake Deploy",3027
Action: app.CliManifests,28+
Before: app.InitApp,3129
},30+
{31+
Name: "version",32+
Usage: "Print helmwave version",33+
Action: app.CliVersion,34+
},3235
}3336
3437
}3538
39+
func planCommand() *cli.Command {40+
return &cli.Command{41+
Name: "planfile",42+
Aliases: []string{"plan"},43+
Usage: "๐ Generate planfile to plandir",44+
Before: app.InitApp,45+
Subcommands: []*cli.Command{46+
{47+
Name: "repo",48+
Action: app.CliPlan,49+
},50+
{51+
Name: "releases",52+
Action: app.CliPlan,53+
},54+
{55+
Name: "values",56+
Action: app.CliPlan,57+
},58+
{59+
Name: "all",60+
Action: app.CliPlan,61+
},62+
},63+
}64+
}65+
3666
func help(c *cli.Context) error {3767
args := c.Args()3868
if args.Present() {cmd/helmwave/main.gomodifiedView file
Loading diffโฆ
pkg/helmwave/cli.gomodifiedView file
Loading diffโฆ
pkg/yml/plan.gomodifiedView file
Loading diffโฆ