Run the Help step by default [#15]
This commit is contained in:
parent
80b26434f5
commit
34b9ec1c4c
|
@ -72,7 +72,7 @@ func determineSteps(cfg Config) *func(Config) []Step {
|
|||
case "delete":
|
||||
return &uninstall
|
||||
default:
|
||||
panic("not implemented")
|
||||
return &help
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue