add export comments

This commit is contained in:
risk danger olson 2016-11-10 11:24:45 -07:00
parent b694d64f12
commit 1715e97f41
3 changed files with 6 additions and 1 deletions

@ -38,7 +38,10 @@ type Environment interface {
// then it will be returned wholesale.
Int(key string, def int) (val int)
// All returns a copy of all the key/value pairs for the current environment.
All() map[string]string
// deprecated, don't use
set(key, value string)
del(key string)
}

@ -8,9 +8,10 @@ type Fetcher interface {
// determining if the key exists.
Get(key string) (val string, ok bool)
// All returns a copy of all the key/value pairs for the current environment.
All() map[string]string
// deprecated, don't use
set(key, value string)
del(key string)
}

@ -37,6 +37,7 @@ func (g *gitEnvironment) Int(key string, def int) (val int) {
return g.git.Int(key, def)
}
// All returns a copy of all the key/value pairs for the current git config.
func (g *gitEnvironment) All() map[string]string {
g.loadGitConfig()