aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/bridges.go
diff options
context:
space:
mode:
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)
}