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

@@ -40,6 +40,7 @@ func (suite *PlanTestSuite) TestNewPlan() {
}
runCfg := run.Config{
HelmCommand: "help",
Debug: false,
KubeConfig: "/branch/.sfere/profig",
Values: "steadfastness,forthrightness",
@@ -255,10 +256,3 @@ func (suite *PlanTestSuite) TestDeterminePlanHelpCommand() {
stepsMaker := determineSteps(cfg)
suite.Same(&help, stepsMaker)
}
func (suite *PlanTestSuite) TestDeterminePlanHelpOnUnknown() {
cfg := Config{}
stepsMaker := determineSteps(cfg)
suite.Same(&help, stepsMaker)
}