Skip to content

Commit

Permalink
z1984 - replace old repository name with the new one (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaiiyoshiyuki authored Sep 27, 2022
1 parent 5b1ba94 commit 6e1e141
Show file tree
Hide file tree
Showing 143 changed files with 395 additions and 390 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@ jobs:
include:
- name: linux amd64
os: ubuntu-latest
buildCmd: env GOOS=linux GOARCH=amd64 go build -o builds/zcli-linux-amd64 -ldflags "-X github.com/zerops-io/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
buildCmd: env GOOS=linux GOARCH=amd64 go build -o builds/zcli-linux-amd64 -ldflags "-X github.com/zeropsio/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
file: zcli-linux-amd64
compress: true
strip: true
runLint: true
runTests: true
- name: linux 386
os: ubuntu-latest
buildCmd: env GOOS=linux GOARCH=386 go build -o builds/zcli-linux-i386 -ldflags "-X github.com/zerops-io/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
buildCmd: env GOOS=linux GOARCH=386 go build -o builds/zcli-linux-i386 -ldflags "-X github.com/zeropsio/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
file: zcli-linux-i386
compress: true
strip: true
runLint: true
runTests: true
- name: darwin amd64
os: macos-latest
buildCmd: env GOOS=darwin GOARCH=amd64 go build -o builds/zcli-darwin-amd64 -ldflags "-X github.com/zerops-io/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
buildCmd: env GOOS=darwin GOARCH=amd64 go build -o builds/zcli-darwin-amd64 -ldflags "-X github.com/zeropsio/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
file: zcli-darwin-amd64
compress: false
strip: false
runLint: true
runTests: true
- name: darwin arm64
os: macos-latest
buildCmd: env GOOS=darwin GOARCH=arm64 go build -o builds/zcli-darwin-arm64 -ldflags "-X github.com/zerops-io/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
buildCmd: env GOOS=darwin GOARCH=arm64 go build -o builds/zcli-darwin-arm64 -ldflags "-X github.com/zeropsio/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
file: zcli-darwin-arm64
compress: false
strip: false
runLint: false
runTests: false
- name: windows amd64
os: ubuntu-latest
buildCmd: env GOOS=windows GOARCH=amd64 go build -o builds/zcli-win-x64.exe -ldflags "-X github.com/zerops-io/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
buildCmd: env GOOS=windows GOARCH=amd64 go build -o builds/zcli-win-x64.exe -ldflags "-X github.com/zeropsio/zcli/src/cmd.Version=${{ github.event.release.tag_name }}" ./cmd/main.go
file: zcli-win-x64.exe
compress: false
strip: false
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.12.10] - 2022-09-27

### Fixed
- replace old `zerops-io` repository to new `zeropsio` repository name

## [v0.12.9] - 2022-09-27

### Added
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"os"

"github.com/zerops-io/zcli/src/metaError"
"github.com/zeropsio/zcli/src/metaError"

"github.com/zerops-io/zcli/src/cmd"
"github.com/zeropsio/zcli/src/cmd"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/zerops-io/zcli
module github.com/zeropsio/zcli

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/bucket/s3/handler_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
)

func (h Handler) Create(ctx context.Context, config RunConfig) error {
Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/bucket/s3/handler_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
)

func (h Handler) Delete(ctx context.Context, config RunConfig) error {
Expand Down
6 changes: 3 additions & 3 deletions src/cliAction/bucket/zerops/handler.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package bucketZerops

import (
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/httpClient"
"github.com/zerops-io/zcli/src/utils/sdkConfig"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/httpClient"
"github.com/zeropsio/zcli/src/utils/sdkConfig"
)

type Config struct {
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/bucket/zerops/handler_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"time"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/projectService"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/projectService"
"github.com/zeropsio/zerops-go/dto/input/body"
"github.com/zeropsio/zerops-go/dto/input/path"
"github.com/zeropsio/zerops-go/sdk"
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/bucket/zerops/handler_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"time"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/projectService"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/projectService"
"github.com/zeropsio/zerops-go/dto/input/path"
"github.com/zeropsio/zerops-go/sdk"
"github.com/zeropsio/zerops-go/sdkBase"
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/buildDeploy/handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package buildDeploy

import (
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/archiveClient"
"github.com/zerops-io/zcli/src/utils/httpClient"
"github.com/zerops-io/zcli/src/utils/sdkConfig"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/archiveClient"
"github.com/zeropsio/zcli/src/utils/httpClient"
"github.com/zeropsio/zcli/src/utils/sdkConfig"
)

const zeropsYamlFileName = "zerops.yml"
Expand Down
6 changes: 3 additions & 3 deletions src/cliAction/buildDeploy/handler_checkInputValues.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/projectService"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/projectService"
)

func (h *Handler) checkInputValues(ctx context.Context, config RunConfig) (*zBusinessZeropsApiProtocol.GetServiceStackByNameResponseDto, error) {
Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/buildDeploy/handler_createAppVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package buildDeploy
import (
"context"

"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
)

func (h *Handler) createAppVersion(ctx context.Context, config RunConfig, serviceStack *zBusinessZeropsApiProtocol.GetServiceStackByNameResponseDto) (*zBusinessZeropsApiProtocol.PostAppVersionResponseDto, error) {
Expand Down
10 changes: 5 additions & 5 deletions src/cliAction/buildDeploy/handler_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (
"path/filepath"
"time"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/processChecker"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/processChecker"
"github.com/zeropsio/zerops-go/dto/input/body"
"github.com/zeropsio/zerops-go/sdk"
"github.com/zeropsio/zerops-go/sdkBase"
Expand Down
6 changes: 3 additions & 3 deletions src/cliAction/buildDeploy/handler_packageUpload.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"io"
"net/http"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/httpClient"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/httpClient"
)

func (h *Handler) packageUpload(appVersion *zBusinessZeropsApiProtocol.PostAppVersionResponseDto, reader io.Reader) error {
Expand Down
10 changes: 5 additions & 5 deletions src/cliAction/buildDeploy/handler_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"io"
"os"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/processChecker"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/processChecker"
)

func (h *Handler) Push(ctx context.Context, config RunConfig) error {
Expand Down
2 changes: 1 addition & 1 deletion src/cliAction/buildDeploy/handler_savePackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/i18n"
)

func (h *Handler) savePackage(config RunConfig, reader io.Reader) (io.Reader, error) {
Expand Down
2 changes: 1 addition & 1 deletion src/cliAction/importProjectService/dataParse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package importProjectService
import (
"fmt"

"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
)

// return number of services and process data [](process Id, service name, action name)
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/importProjectService/handler.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package importProjectService

import (
"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/httpClient"
"github.com/zerops-io/zcli/src/utils/sdkConfig"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/httpClient"
"github.com/zeropsio/zcli/src/utils/sdkConfig"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion src/cliAction/importProjectService/handler_getClientId.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package importProjectService
import (
"context"

"github.com/zerops-io/zcli/src/utils/projectService"
"github.com/zeropsio/zcli/src/utils/projectService"
)

func (h *Handler) getClientId(ctx context.Context, config RunConfig) (string, error) {
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/importProjectService/handler_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

"github.com/briandowns/spinner"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/processChecker"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/processChecker"
)

func (h *Handler) Import(ctx context.Context, config RunConfig) error {
Expand Down
8 changes: 4 additions & 4 deletions src/cliAction/importProjectService/handler_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"fmt"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
)

func (h *Handler) sendProjectRequest(ctx context.Context, config RunConfig, yamlContent string) ([]*zBusinessZeropsApiProtocol.ProjectImportServiceStack, error) {
Expand Down
6 changes: 3 additions & 3 deletions src/cliAction/importProjectService/handler_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package importProjectService
import (
"context"

"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/projectService"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/projectService"
)

func (h *Handler) sendServiceRequest(ctx context.Context, config RunConfig, yamlContent string) ([]*zBusinessZeropsApiProtocol.ProjectImportServiceStack, error) {
Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/importProjectService/yamlContent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path"
"path/filepath"

"github.com/zerops-io/zcli/src/constants"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/constants"
"github.com/zeropsio/zcli/src/i18n"
)

func getImportYamlContent(config RunConfig) ([]byte, error) {
Expand Down
2 changes: 1 addition & 1 deletion src/cliAction/installDaemon/handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package installDaemon

import (
"github.com/zerops-io/zcli/src/daemonInstaller"
"github.com/zeropsio/zcli/src/daemonInstaller"
)

type Config struct {
Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/installDaemon/handler_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"errors"
"fmt"

"github.com/zerops-io/zcli/src/daemonInstaller"
"github.com/zeropsio/zcli/src/daemonInstaller"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/i18n"
)

func (h *Handler) Run(ctx context.Context, _ RunConfig) error {
Expand Down
12 changes: 6 additions & 6 deletions src/cliAction/login/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"fmt"
"net/http"

"github.com/zerops-io/zcli/src/cliStorage"
"github.com/zerops-io/zcli/src/i18n"
"github.com/zerops-io/zcli/src/proto"
"github.com/zerops-io/zcli/src/proto/daemon"
"github.com/zerops-io/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zerops-io/zcli/src/utils/httpClient"
"github.com/zeropsio/zcli/src/cliStorage"
"github.com/zeropsio/zcli/src/i18n"
"github.com/zeropsio/zcli/src/proto"
"github.com/zeropsio/zcli/src/proto/daemon"
"github.com/zeropsio/zcli/src/proto/zBusinessZeropsApiProtocol"
"github.com/zeropsio/zcli/src/utils/httpClient"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion src/cliAction/login/handler_parseRestApiError.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/i18n"
)

type failResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions src/cliAction/removeDaemon/handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package removeDaemon

import (
"github.com/zerops-io/zcli/src/cliAction/stopVpn"
"github.com/zerops-io/zcli/src/daemonInstaller"
"github.com/zeropsio/zcli/src/cliAction/stopVpn"
"github.com/zeropsio/zcli/src/daemonInstaller"
)

type Config struct {
Expand Down
6 changes: 3 additions & 3 deletions src/cliAction/removeDaemon/handler_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
"errors"
"fmt"

"github.com/zerops-io/zcli/src/daemonInstaller"
"github.com/zeropsio/zcli/src/daemonInstaller"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/zerops-io/zcli/src/cliAction/stopVpn"
"github.com/zeropsio/zcli/src/cliAction/stopVpn"

"github.com/zerops-io/zcli/src/i18n"
"github.com/zeropsio/zcli/src/i18n"
)

func (h *Handler) Run(ctx context.Context, _ RunConfig) error {
Expand Down
Loading

0 comments on commit 6e1e141

Please sign in to comment.