diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-24 15:25:15 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-24 15:25:15 +0200 |
commit | 5e8fb7ec5058b816ccc9622f52dbf1777254656c (patch) | |
tree | 76e27dff4c5128785e2e28e1544efff6fe398046 /bridge/bridges.go | |
parent | 666586c5b92b64a64aea22927cfb3754861623a1 (diff) | |
download | git-bug-5e8fb7ec5058b816ccc9622f52dbf1777254656c.tar.gz |
bridge: big refactor and cleanup
Diffstat (limited to 'bridge/bridges.go')
-rw-r--r-- | bridge/bridges.go | 15 |
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) } |