Adding "OnInitialize()" method instead of directly setting a property. Now can have multiple initializers.
This commit is contained in:
@ -358,7 +358,9 @@ func (c *Command) execute(a []string) (err error) {
|
||||
}
|
||||
|
||||
func (c *Command) preRun() {
|
||||
InitializeConfig()
|
||||
for _, x := range initializers {
|
||||
x()
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Command) errorMsgFromParse() string {
|
||||
|
Reference in New Issue
Block a user