mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
fe3d5c95e4
- automatic flag validation and warning - generalized prompt - cleanups
40 lines
688 B
Go
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
|
|
}
|