Skip to content

Commit

Permalink
Deploying from phrase/openapi@95dfe7a0
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 26, 2024
1 parent 2930b89 commit f4a25c0
Show file tree
Hide file tree
Showing 66 changed files with 592 additions and 82 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [2.26.0](https://github.com/phrase/openapi/compare/cli-v2.25.0...cli-v2.26.0) (2024-04-23)


### Bug Fixes

* add missing required params ([#571](https://github.com/phrase/openapi/issues/571))

### Code Refactoring

* add missing required params ([#571](https://github.com/phrase/openapi/issues/571)) ([d810e9e](https://github.com/phrase/openapi/commit/d810e9ebc767e14ba9e56106de8c5774d9d6d178))

## [2.25.0](https://github.com/phrase/openapi/compare/cli-v2.24.0...cli-v2.25.0) (2024-04-22)


Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
This CLI client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.

- API version: 2.0.0
- Package version: 2.25.0
- Package version: 2.26.0

- Build package: org.openapitools.codegen.languages.GoClientCodegen

Expand Down Expand Up @@ -57,15 +57,15 @@ Use the `pull` command to download the most recent locale files back into your p

You can also use `phrase` through a docker image, without installing the cli on your computer.

$ docker run --rm phrase/phrase-cli:2.25.0 help
$ docker run --rm phrase/phrase-cli:2.26.0 help

Some commands are interactive and require the `-it` flag.

$ docker run -it phrase/phrase-cli:2.25.0 init
$ docker run -it phrase/phrase-cli:2.26.0 init

Commands that need to read the config file and write locale files can mount a directory.

$ docker run --volume $(pwd):/code --workdir /code --rm phrase/phrase-cli:2.25.0 pull
$ docker run --volume $(pwd):/code --workdir /code --rm phrase/phrase-cli:2.26.0 pull

You can also use the docker image as base for more complex images.

Expand Down
3 changes: 2 additions & 1 deletion cmd/api_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -50,6 +50,7 @@ func initAccountShow() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down
5 changes: 4 additions & 1 deletion cmd/api_authorizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -122,6 +122,7 @@ func initAuthorizationDelete() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -179,6 +180,7 @@ func initAuthorizationShow() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -241,6 +243,7 @@ func initAuthorizationUpdate() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

var authorizationUpdateParameters api.AuthorizationUpdateParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &authorizationUpdateParameters); err != nil {
HandleError(err)
Expand Down
4 changes: 3 additions & 1 deletion cmd/api_bitbucket_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -52,6 +52,7 @@ func initBitbucketSyncExport() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

var bitbucketSyncExportParameters api.BitbucketSyncExportParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &bitbucketSyncExportParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -122,6 +123,7 @@ func initBitbucketSyncImport() {
}

id := params.GetString(helpers.ToSnakeCase("Id"))

var bitbucketSyncImportParameters api.BitbucketSyncImportParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &bitbucketSyncImportParameters); err != nil {
HandleError(err)
Expand Down
10 changes: 9 additions & 1 deletion cmd/api_blacklisted_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -54,6 +54,7 @@ func initBlacklistedKeyCreate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

var blacklistedKeyCreateParameters api.BlacklistedKeyCreateParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &blacklistedKeyCreateParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -124,7 +125,9 @@ func initBlacklistedKeyDelete() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -183,7 +186,9 @@ func initBlacklistedKeyShow() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -247,7 +252,9 @@ func initBlacklistedKeyUpdate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

var blacklistedKeyUpdateParameters api.BlacklistedKeyUpdateParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &blacklistedKeyUpdateParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -319,6 +326,7 @@ func initBlacklistedKeysList() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down
14 changes: 13 additions & 1 deletion cmd/api_branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -56,7 +56,9 @@ func initBranchCompare() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

name := params.GetString(helpers.ToSnakeCase("Name"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -115,6 +117,7 @@ func initBranchCreate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

var branchCreateParameters api.BranchCreateParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &branchCreateParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -185,7 +188,9 @@ func initBranchDelete() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

name := params.GetString(helpers.ToSnakeCase("Name"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -244,7 +249,9 @@ func initBranchMerge() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

name := params.GetString(helpers.ToSnakeCase("Name"))

var branchMergeParameters api.BranchMergeParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &branchMergeParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -311,7 +318,9 @@ func initBranchShow() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

name := params.GetString(helpers.ToSnakeCase("Name"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -375,7 +384,9 @@ func initBranchUpdate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

name := params.GetString(helpers.ToSnakeCase("Name"))

var branchUpdateParameters api.BranchUpdateParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &branchUpdateParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -447,6 +458,7 @@ func initBranchesList() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down
16 changes: 15 additions & 1 deletion cmd/api_comment_reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -53,8 +53,11 @@ func initReactionCreate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -129,9 +132,13 @@ func initReactionDelete() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -197,9 +204,13 @@ func initReactionShow() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -270,8 +281,11 @@ func initReactionsList() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down
24 changes: 23 additions & 1 deletion cmd/api_comment_replies.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/antihax/optional"
helpers "github.com/phrase/phrase-cli/helpers"
api "github.com/phrase/phrase-go/v2"
api "github.com/phrase/phrase-go/v3"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -55,8 +55,11 @@ func initRepliesList() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

var repliesListParameters api.RepliesListParameters
if err := json.Unmarshal([]byte(params.GetString("data")), &repliesListParameters); err != nil {
HandleError(err)
Expand Down Expand Up @@ -163,8 +166,11 @@ func initReplyCreate() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -239,9 +245,13 @@ func initReplyDelete() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -307,9 +317,13 @@ func initReplyMarkAsRead() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -375,9 +389,13 @@ func initReplyMarkAsUnread() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down Expand Up @@ -443,9 +461,13 @@ func initReplyShow() {
}

projectId := params.GetString(helpers.ToSnakeCase("ProjectId"))

keyId := params.GetString(helpers.ToSnakeCase("KeyId"))

commentId := params.GetString(helpers.ToSnakeCase("CommentId"))

id := params.GetString(helpers.ToSnakeCase("Id"))

if params.IsSet(helpers.ToSnakeCase("xPhraseAppOTP")) {
localVarOptionals.XPhraseAppOTP = optional.NewString(params.GetString(helpers.ToSnakeCase("XPhraseAppOTP")))
}
Expand Down
Loading

0 comments on commit f4a25c0

Please sign in to comment.