aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/bridges.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-24 15:25:15 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-24 15:25:15 +0200
commit5e8fb7ec5058b816ccc9622f52dbf1777254656c (patch)
tree76e27dff4c5128785e2e28e1544efff6fe398046 /bridge/bridges.go
parent666586c5b92b64a64aea22927cfb3754861623a1 (diff)
downloadgit-bug-5e8fb7ec5058b816ccc9622f52dbf1777254656c.tar.gz
bridge: big refactor and cleanup
Diffstat (limited to 'bridge/bridges.go')
-rw-r--r--bridge/bridges.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/bridge/bridges.go b/bridge/bridges.go
index c542903c..bfd51cb4 100644
--- a/bridge/bridges.go
+++ b/bridge/bridges.go
@@ -2,12 +2,15 @@ package bridge
import (
"github.com/MichaelMure/git-bug/bridge/core"
- "github.com/MichaelMure/git-bug/bridge/github"
+ _ "github.com/MichaelMure/git-bug/bridge/github"
+ "github.com/MichaelMure/git-bug/repository"
)
-// Bridges return all known bridges
-func Bridges() []*core.Bridge {
- return []*core.Bridge{
- core.NewBridge(&github.Github{}),
- }
+// Targets return all known bridge implementation target
+func Targets() []string {
+ return core.Targets()
+}
+
+func ConfiguredBridges(repo repository.RepoCommon) ([]string, error) {
+ return core.ConfiguredBridges(repo)
}