From 1715e97f41198cc993123755b483778ed340e4e8 Mon Sep 17 00:00:00 2001 From: risk danger olson Date: Thu, 10 Nov 2016 11:24:45 -0700 Subject: [PATCH] add export comments --- config/environment.go | 3 +++ config/fetcher.go | 3 ++- config/git_environment.go | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/environment.go b/config/environment.go index 9d2e7baa..a9522d02 100644 --- a/config/environment.go +++ b/config/environment.go @@ -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) } diff --git a/config/fetcher.go b/config/fetcher.go index 3c775379..df3df1e8 100644 --- a/config/fetcher.go +++ b/config/fetcher.go @@ -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) } diff --git a/config/git_environment.go b/config/git_environment.go index 4316fc32..a8d441df 100644 --- a/config/git_environment.go +++ b/config/git_environment.go @@ -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()