Run the Help step by default [#15]

This commit is contained in:
Erin Call 2019-12-26 10:47:42 -08:00
parent 80b26434f5
commit 34b9ec1c4c
No known key found for this signature in database
GPG key ID: 4071FF6C15B8DAD1
2 changed files with 8 additions and 1 deletions

View file

@ -72,7 +72,7 @@ func determineSteps(cfg Config) *func(Config) []Step {
case "delete":
return &uninstall
default:
panic("not implemented")
return &help
}
}
}

View file

@ -255,3 +255,10 @@ func (suite *PlanTestSuite) TestDeterminePlanHelpCommand() {
stepsMaker := determineSteps(cfg)
suite.Same(&help, stepsMaker)
}
func (suite *PlanTestSuite) TestDeterminePlanHelpOnUnknown() {
cfg := Config{}
stepsMaker := determineSteps(cfg)
suite.Same(&help, stepsMaker)
}