diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-24 16:24:38 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-24 16:24:38 +0200 |
commit | 061e83d4b4aa66c2691b3699a3e770b2a58d26df (patch) | |
tree | ab82b815a91054fc498dbd7564cc61322b5fd338 /cache | |
parent | 43bda202fa347e6893671b05376c0e4fcb9196f4 (diff) | |
download | git-bug-061e83d4b4aa66c2691b3699a3e770b2a58d26df.tar.gz |
commands: add "bridge rm"
Diffstat (limited to 'cache')
-rw-r--r-- | cache/repo_cache.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go index 0f270909..4ca19150 100644 --- a/cache/repo_cache.go +++ b/cache/repo_cache.go @@ -75,14 +75,21 @@ func (c *RepoCache) GetUserEmail() (string, error) { return c.repo.GetUserEmail() } +// StoreConfig store a single key/value pair in the config of the repo func (c *RepoCache) StoreConfig(key string, value string) error { return c.repo.StoreConfig(key, value) } +// ReadConfigs read all key/value pair matching the key prefix func (c *RepoCache) ReadConfigs(keyPrefix string) (map[string]string, error) { return c.repo.ReadConfigs(keyPrefix) } +// RmConfigs remove all key/value pair matching the key prefix +func (c *RepoCache) RmConfigs(keyPrefix string) error { + return c.repo.RmConfigs(keyPrefix) +} + func (c *RepoCache) lock() error { lockPath := repoLockFilePath(c.repo) |