From 061e83d4b4aa66c2691b3699a3e770b2a58d26df Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 24 Sep 2018 16:24:38 +0200 Subject: commands: add "bridge rm" --- repository/mock_repo.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'repository/mock_repo.go') diff --git a/repository/mock_repo.go b/repository/mock_repo.go index 2389a8e0..74de8f57 100644 --- a/repository/mock_repo.go +++ b/repository/mock_repo.go @@ -73,6 +73,15 @@ func (r *mockRepoForTest) ReadConfigs(keyPrefix string) (map[string]string, erro return result, nil } +func (r *mockRepoForTest) RmConfigs(keyPrefix string) error { + for key := range r.config { + if strings.HasPrefix(key, keyPrefix) { + delete(r.config, key) + } + } + return nil +} + // PushRefs push git refs to a remote func (r *mockRepoForTest) PushRefs(remote string, refSpec string) (string, error) { return "", nil -- cgit