github.go

 1package github
 2
 3import (
 4	"fmt"
 5
 6	"github.com/MichaelMure/git-bug/bridge/core"
 7	"github.com/MichaelMure/git-bug/cache"
 8)
 9
10func init() {
11	core.Register(&Github{})
12}
13
14type Github struct{}
15
16func (*Github) Target() string {
17	return "github"
18}
19
20func (*Github) Importer() core.Importer {
21	return &githubImporter{}
22}
23
24func (*Github) Exporter() core.Exporter {
25	return nil
26}
27
28type githubImporter struct{}
29
30func (*githubImporter) ImportAll(repo *cache.RepoCache, conf core.Configuration) error {
31	fmt.Println(conf)
32	fmt.Println("IMPORT ALL")
33
34	return nil
35}
36
37func (*githubImporter) Import(repo *cache.RepoCache, conf core.Configuration, id string) error {
38	fmt.Println(conf)
39	fmt.Println("IMPORT")
40
41	return nil
42}