Add support for an InitializeConfig method as defined on Cobra by the user

This commit is contained in:
spf13
2014-06-27 12:27:46 -04:00
parent 10a8494a87
commit 7cebca3761
2 changed files with 20 additions and 2 deletions

View File

@ -25,6 +25,13 @@ import (
"text/template"
)
// Called after flags are parsed immediately before executing any Command
var InitializeConfig func()
func init() {
InitializeConfig = func() {}
}
func Gt(a interface{}, b interface{}) bool {
var left, right int64
av := reflect.ValueOf(a)