aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/github.go
blob: 4f7a3b9450734c890cf1b99179c7aed134d30f35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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) Target() string {
	return "github"
}

func (*Github) Importer() core.Importer {
	return &githubImporter{}
}

func (*Github) Exporter() core.Exporter {
	return nil
}

type githubImporter struct{}

func (*githubImporter) ImportAll(repo *cache.RepoCache, conf core.Configuration) error {
	fmt.Println(conf)
	fmt.Println("IMPORT ALL")

	return nil
}

func (*githubImporter) Import(repo *cache.RepoCache, conf core.Configuration, id string) error {
	fmt.Println(conf)
	fmt.Println("IMPORT")

	return nil
}