Return an error on unknown commands [#15]

I'm probably overthinking this--explicitly calling help is a strange and
unusual case--but it doesn't really hurt, so I'm going for it.
This commit is contained in:
Erin Call
2019-12-26 11:29:33 -08:00
parent 34b9ec1c4c
commit 6d28b7b28a
5 changed files with 39 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ func NewPlan(cfg Config) (*Plan, error) {
p := Plan{
cfg: cfg,
runCfg: run.Config{
HelmCommand: string(cfg.Command),
Debug: cfg.Debug,
KubeConfig: cfg.KubeConfig,
Values: cfg.Values,