git-bug/bridge/launchpad/launchpad.go
Michael Muré fe3d5c95e4
bridges: massive refactor
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +01:00

40 lines
688 B
Go

// Package launchpad contains the Launchpad bridge implementation
package launchpad
import (
"time"
"github.com/MichaelMure/git-bug/bridge/core"
)
const (
target = "launchpad-preview"
metaKeyLaunchpadID = "launchpad-id"
metaKeyLaunchpadLogin = "launchpad-login"
confKeyProject = "project"
defaultTimeout = 60 * time.Second
)
var _ core.BridgeImpl = &Launchpad{}
type Launchpad struct{}
func (*Launchpad) Target() string {
return "launchpad-preview"
}
func (Launchpad) LoginMetaKey() string {
return metaKeyLaunchpadLogin
}
func (*Launchpad) NewImporter() core.Importer {
return &launchpadImporter{}
}
func (*Launchpad) NewExporter() core.Exporter {
return nil
}