Skip to content

Commit

Permalink
fix(cli): Adapt to formats API fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jablan committed Oct 10, 2024
1 parent 55e7a9a commit 57e1c3d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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 @@ -243,7 +243,7 @@ func (cmd *InitCommand) newProject() error {
}

func (cmd *InitCommand) selectFormat() error {
formats, _, err := cmd.client.FormatsApi.FormatsList(Auth, &phrase.FormatsListOpts{})
formats, _, err := cmd.client.FormatsApi.FormatsList(Auth)
if err != nil {
return err
}
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 @@ -241,7 +241,7 @@ func outputUpload(upload *phrase.Upload) {
}

func formatsByApiName(client *phrase.APIClient) (map[string]*phrase.Format, error) {
formats, _, err := client.FormatsApi.FormatsList(Auth, &phrase.FormatsListOpts{})
formats, _, err := client.FormatsApi.FormatsList(Auth)
if err != nil {
return nil, err
}
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.5.0 h1:zviffIun5A10PNnnSV0ynHjs+VRY7fc9xXVtNOjkm3o=
github.com/phrase/phrase-go/v3 v3.5.0/go.mod h1:s0uOYiXLxKAYlaIS6TbKv3efkKFUlY4OB6OL+VgvK90=
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/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

0 comments on commit 57e1c3d

Please sign in to comment.