cli/controller/main.go
Surya 5d4fd8f7b1
Versioning (#26)
* Gets version
* Checks if CLI is up to date on `run`, `init` and `version`
* Pipes versioning via ldflags w/ goreleaser
2020-10-16 13:25:24 -07:00

24 lines
498 B
Go

package controller
import (
"github.com/google/go-github/github"
"github.com/railwayapp/cli/configs"
"github.com/railwayapp/cli/gateway"
"github.com/railwayapp/cli/random"
)
type Controller struct {
gtwy *gateway.Gateway
cfg *configs.Configs
randomizer *random.Randomizer
ghc *github.Client
}
func New() *Controller {
return &Controller{
gtwy: gateway.New(),
cfg: configs.New(),
randomizer: random.New(),
ghc: github.NewClient(nil),
}
}