mirror of
https://github.com/railwayapp/cli
synced 2026-04-21 14:07:23 +00:00
* Gets version * Checks if CLI is up to date on `run`, `init` and `version` * Pipes versioning via ldflags w/ goreleaser
24 lines
498 B
Go
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),
|
|
}
|
|
}
|