Skip to content

Commit

Permalink
Use phrase-go v4
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoenke committed Dec 18, 2024
1 parent 4355255 commit c097753
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/prompt"
"github.com/phrase/phrase-cli/cmd/internal/shared"
"github.com/phrase/phrase-cli/cmd/internal/spinner"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
"gopkg.in/yaml.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/print"

"github.com/antihax/optional"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/pull_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/paths"
"github.com/phrase/phrase-cli/cmd/internal/placeholders"
"github.com/phrase/phrase-cli/cmd/internal/shared"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/print"
"github.com/phrase/phrase-cli/cmd/internal/shared"
"github.com/phrase/phrase-cli/cmd/internal/spinner"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
)

type PushCommand struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/push_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/antihax/optional"
"github.com/phrase/phrase-cli/cmd/internal/paths"
"github.com/phrase/phrase-cli/cmd/internal/placeholders"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
"github.com/spf13/viper"
)

Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/print"
"github.com/phrase/phrase-cli/cmd/internal/prompt"
"github.com/phrase/phrase-cli/cmd/internal/shared"
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
"github.com/spf13/viper"
"golang.org/x/exp/maps"
)
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/cmd/internal/upload_cleanup.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package internal

import (
"github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
)

type UploadCleanupCommand struct {
Expand Down
4 changes: 2 additions & 2 deletions clients/cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/phrase/phrase-cli/cmd/internal/print"
"github.com/phrase/phrase-cli/cmd/internal/shared"
"github.com/phrase/phrase-cli/cmd/internal/updatechecker"
"github.com/phrase/phrase-go/v3"
api "github.com/phrase/phrase-go/v3"
"github.com/phrase/phrase-go/v4"
api "github.com/phrase/phrase-go/v4"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/daviddengcn/go-colortext v1.0.0
github.com/jpillora/backoff v1.0.0
github.com/mitchellh/mapstructure v1.4.0
github.com/phrase/phrase-go/v3 v4.0.2 // x-release-please-version
github.com/phrase/phrase-go/v4 v4.0.2 // x-release-please-version
github.com/spf13/cobra v1.0.0
github.com/spf13/viper v1.7.1
gopkg.in/yaml.v2 v2.4.0
Expand Down
4 changes: 2 additions & 2 deletions clients/cli/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=
github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc=
github.com/phrase/phrase-go/v3 v3.6.0 h1:0Uea1+Cz3NIdg1KSPhB3A/uQoCWlZAs/B5Eeb1IwAhc=
github.com/phrase/phrase-go/v3 v3.6.0/go.mod h1:s0uOYiXLxKAYlaIS6TbKv3efkKFUlY4OB6OL+VgvK90=
github.com/phrase/phrase-go/v4 v4.0.2 h1:xljCCa67OWBXrRCQqYgYdvVbfgiax0MgdoSey/rSh3M=
github.com/phrase/phrase-go/v4 v4.0.2/go.mod h1:4XplKvrbHS2LDaXfFp9xrVDtO5xk2WHFm0htutwwd8c=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator/templates/cli/api.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v3"
api "github.com/phrase/phrase-go/v4"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down

0 comments on commit c097753

Please sign in to comment.