some more renaming

This commit is contained in:
2022-02-19 21:39:08 +05:30
parent 83153b190b
commit b1b0e4bf2a
3 changed files with 12 additions and 12 deletions

View File

@@ -4,19 +4,19 @@ import (
"encoding/json"
"os"
"github.com/edtan/gitlab-release-resource"
"github.com/natto1784/gitea-release-resource"
)
func main() {
request := resource.NewCheckRequest()
inputRequest(&request)
gitlab, err := resource.NewGitLabClient(request.Source)
gitea, err := resource.NewGiteaClient(request.Source)
if err != nil {
resource.Fatal("constructing gitlab client", err)
resource.Fatal("constructing gitea client", err)
}
command := resource.NewCheckCommand(gitlab)
command := resource.NewCheckCommand(gitea)
response, err := command.Run(request)
if err != nil {
resource.Fatal("running command", err)

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"os"
"github.com/edtan/gitlab-release-resource"
"github.com/natto1784/gitea-release-resource"
)
func main() {
@@ -18,12 +18,12 @@ func main() {
destDir := os.Args[1]
gitlab, err := resource.NewGitLabClient(request.Source)
gitea, err := resource.NewGiteaClient(request.Source)
if err != nil {
resource.Fatal("constructing gitlab client", err)
resource.Fatal("constructing gitea client", err)
}
command := resource.NewInCommand(gitlab, os.Stderr)
command := resource.NewInCommand(gitea, os.Stderr)
response, err := command.Run(destDir, request)
if err != nil {
resource.Fatal("running command", err)

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"os"
"github.com/edtan/gitlab-release-resource"
"github.com/natto1784/gitea-release-resource"
)
func main() {
@@ -18,12 +18,12 @@ func main() {
sourceDir := os.Args[1]
gitlab, err := resource.NewGitLabClient(request.Source)
gitea, err := resource.NewGiteaClient(request.Source)
if err != nil {
resource.Fatal("constructing gitlab client", err)
resource.Fatal("constructing gitea client", err)
}
command := resource.NewOutCommand(gitlab, os.Stderr)
command := resource.NewOutCommand(gitea, os.Stderr)
response, err := command.Run(sourceDir, request)
if err != nil {
resource.Fatal("running command", err)