Skip to content

Commit

Permalink
[CHANGE] use cherrygo lib v3
Browse files Browse the repository at this point in the history
  • Loading branch information
eijei521 committed Aug 9, 2022
1 parent 8c8513a commit bac8f6a
Show file tree
Hide file tree
Showing 31 changed files with 32 additions and 34 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherryservers/cherryctl
go 1.17

require (
github.com/cherryservers/cherrygo v0.0.0-20220401075457-717ec4d9cb01
github.com/cherryservers/cherrygo/v3 v3.0.0
github.com/google/uuid v1.3.0
github.com/manifoldco/promptui v0.9.0
github.com/olekukonko/tablewriter v0.0.5
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cherryservers/cherrygo v0.0.0-20220401075457-717ec4d9cb01 h1:j7SqlbefPyse+nYg1SdbvxKRIcHiNAkDDRngN5ndLsM=
github.com/cherryservers/cherrygo v0.0.0-20220401075457-717ec4d9cb01/go.mod h1:EhhDQz0V8WtBLu/xhboTnuenN6snuOxMfOsSGljB7es=
github.com/cherryservers/cherrygo v2.0.0+incompatible h1:ayR7Z3QgvXysGzwNaYSki8IQdXOdNknrbgv4Ao0+siQ=
github.com/cherryservers/cherrygo v2.0.0+incompatible/go.mod h1:bIjHwQGKgXs2chXq9AZouU42yPkYc/Mseqg9K/KhzEM=
github.com/cherryservers/cherrygo/v3 v3.0.0 h1:BXkmT9kX1P9ADgcObaUCUpYOSaqvkHHfOyAmRKlGohY=
github.com/cherryservers/cherrygo/v3 v3.0.0/go.mod h1:FHEy2VZaG3BL78z3/E1UZXFSHU3mTRUltTeJ6T3FW3Y=
github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
Expand Down
2 changes: 1 addition & 1 deletion internal/images/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package images

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"syscall"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"golang.org/x/term"
"gopkg.in/yaml.v2"
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/assign.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ips

import (
"github.com/cherryservers/cherryctl/internal/utils"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/cherryservers/cherryctl/internal/utils"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ips

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/plans/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package plans

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/projects/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"

"github.com/cherryservers/cherryctl/internal/utils"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package projects

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/projects/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"

"github.com/cherryservers/cherryctl/internal/utils"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/regions/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package regions

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/servers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/servers/reinstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package servers
import (
"fmt"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/servers/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package servers

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/servers/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"
"strings"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/sshkeys/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sshkeys
import (
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/sshkeys/sshkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package sshkeys

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/sshkeys/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sshkeys
import (
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/storages/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"

"github.com/cherryservers/cherryctl/internal/utils"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/storages/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/storages/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package storages

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/storages/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/teams/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/teams/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package teams

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/teams/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/users/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strconv"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/users/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package users

import (
"github.com/cherryservers/cherryctl/internal/outputs"
"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/cherryservers/cherrygo"
"github.com/cherryservers/cherrygo/v3"
"github.com/pkg/errors"
)

Expand Down

0 comments on commit bac8f6a

Please sign in to comment.