From 57e1c3d0fba6abc7fa6acf6d5ce52ac2dbe2f7ab Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Thu, 10 Oct 2024 14:27:04 +0200 Subject: [PATCH] fix(cli): Adapt to formats API fix --- clients/cli/cmd/internal/init.go | 2 +- clients/cli/cmd/internal/push.go | 2 +- clients/cli/go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/cli/cmd/internal/init.go b/clients/cli/cmd/internal/init.go index 73ff5f53..7eb65205 100644 --- a/clients/cli/cmd/internal/init.go +++ b/clients/cli/cmd/internal/init.go @@ -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 } diff --git a/clients/cli/cmd/internal/push.go b/clients/cli/cmd/internal/push.go index 3c07c2b7..23fdaa03 100644 --- a/clients/cli/cmd/internal/push.go +++ b/clients/cli/cmd/internal/push.go @@ -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 } diff --git a/clients/cli/go.sum b/clients/cli/go.sum index 6e83933a..f6c66e46 100644 --- a/clients/cli/go.sum +++ b/clients/cli/go.sum @@ -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=