Skip to content

Commit

Permalink
Merge pull request #28 from AlexsJones/feature/dep
Browse files Browse the repository at this point in the history
added in dep management and got kepler building
  • Loading branch information
Alex Jones authored Apr 11, 2018
2 parents 225710f + 41e297c commit 708e6dd
Show file tree
Hide file tree
Showing 3 changed files with 330 additions and 35 deletions.
255 changes: 255 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "master"
name = "github.com/AlexsJones/cli"

[[constraint]]
branch = "master"
name = "github.com/AlexsJones/cloud-transponder"

[[constraint]]
branch = "master"
name = "github.com/AlexsJones/kubebuilder"

[[constraint]]
name = "github.com/GoogleCloudPlatform/docker-credential-gcr"
version = "1.4.3"

[[constraint]]
branch = "master"
name = "github.com/MovieStoreGuy/resources"

[[constraint]]
branch = "master"
name = "github.com/dimiro1/banner"

[[constraint]]
name = "github.com/fatih/color"
version = "1.6.0"

[[constraint]]
name = "github.com/gogo/protobuf"
version = "1.0.0"

[[constraint]]
name = "github.com/google/go-github"
version = "15.0.0"

[[constraint]]
branch = "master"
name = "github.com/mitchellh/go-homedir"

[[constraint]]
branch = "master"
name = "golang.org/x/oauth2"

[[constraint]]
name = "gopkg.in/src-d/go-git.v4"
version = "4.3.0"

[[constraint]]
name = "gopkg.in/yaml.v2"
version = "2.2.1"
36 changes: 1 addition & 35 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"os/exec"
"path"
"runtime"
"time"

"github.com/AlexsJones/cli/cli"
"github.com/AlexsJones/kepler/commands/docker"
Expand All @@ -21,8 +20,6 @@ import (
"github.com/AlexsJones/kepler/commands/palette"
"github.com/AlexsJones/kepler/commands/storage"
"github.com/AlexsJones/kepler/commands/submodules"
"github.com/AlexsJones/renew"
"github.com/AlexsJones/renew/fetcher"
"github.com/dimiro1/banner"
)

Expand Down Expand Up @@ -67,7 +64,7 @@ func processVersion() {
fmt.Printf("Running kepler version %s\n", version)
}
}
func mainInit() {
func main() {
banner.Init(os.Stdout, true, true, bytes.NewBufferString(b))

processVersion()
Expand All @@ -91,34 +88,3 @@ func mainInit() {
//-------------------------------------------
cli.Run()
}

func main() {
stateChange := make(chan renew.StatusCode)

go func() {
for {
select {
case evt := <-stateChange:
switch evt {
case renew.UPDATEFETCHED:
fmt.Printf("\nA kepler update has been fetched...\n")
time.Sleep(time.Second * 5)
case renew.RESTARTING:
fmt.Println("-----restarting-----")
}
}

time.Sleep(time.Second)
}
}()

renew.Run(&renew.Configuration{
Process: mainInit,
StateChange: stateChange,
ApplicationGoPath: "github.com/AlexsJones/kepler",
Fetcher: &fetcher.GithubFetcher{
Interval: time.Second * 60,
GithubRepository: "https://github.com/AlexsJones/kepler.git",
},
})
}

0 comments on commit 708e6dd

Please sign in to comment.