diff options
author | amine <hilalyamine@gmail.com> | 2019-10-31 15:46:09 +0100 |
---|---|---|
committer | amine <hilalyamine@gmail.com> | 2019-10-31 15:46:09 +0100 |
commit | ab935674a26f2eef5d8014c615b9b5bc1f402135 (patch) | |
tree | 0a1283552ec54460fc3bef464ac26d61fc034066 /repository/repo.go | |
parent | 11b4a1beb7e1ab8809515a5ce21e8708fba7f300 (diff) | |
download | git-bug-ab935674a26f2eef5d8014c615b9b5bc1f402135.tar.gz |
repository: config interface and implementation rework
Diffstat (limited to 'repository/repo.go')
-rw-r--r-- | repository/repo.go | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/repository/repo.go b/repository/repo.go index 44204493..f17d594b 100644 --- a/repository/repo.go +++ b/repository/repo.go @@ -30,24 +30,11 @@ type RepoCommon interface { // GetRemotes returns the configured remotes repositories. GetRemotes() (map[string]string, error) - // StoreConfig store a single key/value pair in the config of the repo - StoreConfig(key string, value string) error + // LocalConfig . + LocalConfig() Config - // ReadConfigs read all key/value pair matching the key prefix - ReadConfigs(keyPrefix string) (map[string]string, error) - - // ReadConfigBool read a single boolean value from the config - // Return ErrNoConfigEntry or ErrMultipleConfigEntry if there is zero or more than one entry - // for this key - ReadConfigBool(key string) (bool, error) - - // ReadConfigBool read a single string value from the config - // Return ErrNoConfigEntry or ErrMultipleConfigEntry if there is zero or more than one entry - // for this key - ReadConfigString(key string) (string, error) - - // RmConfigs remove all key/value pair matching the key prefix - RmConfigs(keyPrefix string) error + // GlobalConfig . + GlobalConfig() Config } // Repo represents a source code repository. |