some more renaming
This commit is contained in:
@@ -4,19 +4,19 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/edtan/gitlab-release-resource"
|
"github.com/natto1784/gitea-release-resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
request := resource.NewCheckRequest()
|
request := resource.NewCheckRequest()
|
||||||
inputRequest(&request)
|
inputRequest(&request)
|
||||||
|
|
||||||
gitlab, err := resource.NewGitLabClient(request.Source)
|
gitea, err := resource.NewGiteaClient(request.Source)
|
||||||
if err != nil {
|
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)
|
response, err := command.Run(request)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
resource.Fatal("running command", err)
|
resource.Fatal("running command", err)
|
||||||
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/edtan/gitlab-release-resource"
|
"github.com/natto1784/gitea-release-resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -18,12 +18,12 @@ func main() {
|
|||||||
|
|
||||||
destDir := os.Args[1]
|
destDir := os.Args[1]
|
||||||
|
|
||||||
gitlab, err := resource.NewGitLabClient(request.Source)
|
gitea, err := resource.NewGiteaClient(request.Source)
|
||||||
if err != nil {
|
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)
|
response, err := command.Run(destDir, request)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
resource.Fatal("running command", err)
|
resource.Fatal("running command", err)
|
||||||
|
@@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/edtan/gitlab-release-resource"
|
"github.com/natto1784/gitea-release-resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -18,12 +18,12 @@ func main() {
|
|||||||
|
|
||||||
sourceDir := os.Args[1]
|
sourceDir := os.Args[1]
|
||||||
|
|
||||||
gitlab, err := resource.NewGitLabClient(request.Source)
|
gitea, err := resource.NewGiteaClient(request.Source)
|
||||||
if err != nil {
|
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)
|
response, err := command.Run(sourceDir, request)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
resource.Fatal("running command", err)
|
resource.Fatal("running command", err)
|
||||||
|
Reference in New Issue
Block a user