aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/bridges.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-10-12 18:10:44 +0900
committeramine <hilalyamine@gmail.com>2019-11-09 13:26:48 +0100
commit3984919a3df95b8ec203bcb82b66c9c2270579c7 (patch)
tree1a32f0978e76f097edf2635191e6940b990efe05 /bridge/bridges.go
parent3433fa5def3fb3c2707bae1aeb4ae1bd62c930de (diff)
downloadgit-bug-3984919a3df95b8ec203bcb82b66c9c2270579c7.tar.gz
bridge: various cleanups
Diffstat (limited to 'bridge/bridges.go')
-rw-r--r--bridge/bridges.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/bridge/bridges.go b/bridge/bridges.go
index dcb35af1..9bbf3941 100644
--- a/bridge/bridges.go
+++ b/bridge/bridges.go
@@ -3,13 +3,19 @@ package bridge
import (
"github.com/MichaelMure/git-bug/bridge/core"
- _ "github.com/MichaelMure/git-bug/bridge/github"
- _ "github.com/MichaelMure/git-bug/bridge/gitlab"
- _ "github.com/MichaelMure/git-bug/bridge/launchpad"
+ "github.com/MichaelMure/git-bug/bridge/github"
+ "github.com/MichaelMure/git-bug/bridge/gitlab"
+ "github.com/MichaelMure/git-bug/bridge/launchpad"
"github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/repository"
)
+func init() {
+ core.Register(&github.Github{})
+ core.Register(&gitlab.Gitlab{})
+ core.Register(&launchpad.Launchpad{})
+}
+
// Targets return all known bridge implementation target
func Targets() []string {
return core.Targets()