1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Move the utils.go file into the /utils directory

This commit is contained in:
Chris Cummer
2019-08-05 10:50:12 -07:00
parent 0bd2d176d8
commit 4e46fff145
57 changed files with 190 additions and 188 deletions

View File

@@ -6,7 +6,7 @@ import (
"net/http"
ghb "github.com/google/go-github/v26/github"
"github.com/wtfutil/wtf/wtf"
"github.com/wtfutil/wtf/utils"
"golang.org/x/oauth2"
)
@@ -35,7 +35,7 @@ func NewGithubRepo(name, owner, apiKey, baseURL, uploadURL string) *GithubRepo {
}
func (repo *GithubRepo) Open() {
wtf.OpenFile(*repo.RemoteRepo.HTMLURL)
utils.OpenFile(*repo.RemoteRepo.HTMLURL)
}
// Refresh reloads the github data via the Github API

View File

@@ -6,7 +6,7 @@ import (
"github.com/olebedev/config"
"github.com/wtfutil/wtf/cfg"
"github.com/wtfutil/wtf/wtf"
"github.com/wtfutil/wtf/utils"
)
const defaultTitle = "GitHub"
@@ -57,7 +57,7 @@ func parseRepositories(ymlConfig *config.Config) []string {
return result
}
result = wtf.ToStrs(ymlConfig.UList("repositories"))
result = utils.ToStrs(ymlConfig.UList("repositories"))
return result
}