Update vendor spf13/cobra to fix completion error in bash 3

This commit is contained in:
Kazuki Suda
2018-02-19 22:47:19 +09:00
parent 2f09876c44
commit e604a7fdb1
10 changed files with 215 additions and 99 deletions

View File

@@ -70,7 +70,8 @@ func AddTemplateFuncs(tmplFuncs template.FuncMap) {
}
}
// OnInitialize takes a series of func() arguments and appends them to a slice of func().
// OnInitialize sets the passed functions to be run when each command's
// Execute method is called.
func OnInitialize(y ...func()) {
initializers = append(initializers, y...)
}