1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-29 21:47:01 +02:00
goreleaser/context/context.go
Carlos Alexandro Becker b18185da18
even more improvements
2017-01-14 15:08:10 -02:00

31 lines
526 B
Go

package context
import "github.com/goreleaser/releaser/config"
// GitInfo includes tags and diffs used in some point
type GitInfo struct {
CurrentTag string
PreviousTag string
Diff string
}
type Repo struct {
Owner, Name string
}
type Context struct {
Config *config.ProjectConfig
Token *string
Git *GitInfo
Repo *Repo
BrewRepo *Repo
Archives map[string]string
}
func New(config config.ProjectConfig) *Context {
return &Context{
Config: &config,
Archives: map[string]string{},
}
}