add export comments
This commit is contained in:
parent
b694d64f12
commit
1715e97f41
@ -38,7 +38,10 @@ type Environment interface {
|
|||||||
// then it will be returned wholesale.
|
// then it will be returned wholesale.
|
||||||
Int(key string, def int) (val int)
|
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
|
All() map[string]string
|
||||||
|
|
||||||
|
// deprecated, don't use
|
||||||
set(key, value string)
|
set(key, value string)
|
||||||
del(key string)
|
del(key string)
|
||||||
}
|
}
|
||||||
|
@ -8,9 +8,10 @@ type Fetcher interface {
|
|||||||
// determining if the key exists.
|
// determining if the key exists.
|
||||||
Get(key string) (val string, ok bool)
|
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
|
All() map[string]string
|
||||||
|
|
||||||
|
// deprecated, don't use
|
||||||
set(key, value string)
|
set(key, value string)
|
||||||
|
|
||||||
del(key string)
|
del(key string)
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ func (g *gitEnvironment) Int(key string, def int) (val int) {
|
|||||||
return g.git.Int(key, def)
|
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 {
|
func (g *gitEnvironment) All() map[string]string {
|
||||||
g.loadGitConfig()
|
g.loadGitConfig()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user