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/github/github.go | |
parent | 666586c5b92b64a64aea22927cfb3754861623a1 (diff) | |
download | git-bug-5e8fb7ec5058b816ccc9622f52dbf1777254656c.tar.gz |
bridge: big refactor and cleanup
Diffstat (limited to 'bridge/github/github.go')
-rw-r--r-- | bridge/github/github.go | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bridge/github/github.go b/bridge/github/github.go index 45954e23..4f7a3b94 100644 --- a/bridge/github/github.go +++ b/bridge/github/github.go @@ -1,13 +1,19 @@ package github import ( + "fmt" + "github.com/MichaelMure/git-bug/bridge/core" "github.com/MichaelMure/git-bug/cache" ) +func init() { + core.Register(&Github{}) +} + type Github struct{} -func (*Github) Name() string { +func (*Github) Target() string { return "github" } @@ -22,9 +28,15 @@ func (*Github) Exporter() core.Exporter { type githubImporter struct{} func (*githubImporter) ImportAll(repo *cache.RepoCache, conf core.Configuration) error { - panic("implement me") + fmt.Println(conf) + fmt.Println("IMPORT ALL") + + return nil } func (*githubImporter) Import(repo *cache.RepoCache, conf core.Configuration, id string) error { - panic("implement me") + fmt.Println(conf) + fmt.Println("IMPORT") + + return nil } |