Skip to content

Commit

Permalink
Deploying from phrase/openapi@b8121547
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Sep 3, 2024
1 parent 5f6818c commit 8f3df1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/api_tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ func initTagsList() {
localVarOptionals.PerPage = optional.NewInt32(params.GetInt32(helpers.ToSnakeCase("PerPage")))
}

if params.IsSet(helpers.ToSnakeCase("excludeSystemTags")) {
localVarOptionals.ExcludeSystemTags = optional.NewBool(params.GetBool(helpers.ToSnakeCase("ExcludeSystemTags")))
}

if params.IsSet(helpers.ToSnakeCase("branch")) {
localVarOptionals.Branch = optional.NewString(params.GetString(helpers.ToSnakeCase("Branch")))
}
Expand Down Expand Up @@ -309,6 +313,7 @@ func initTagsList() {
AddFlag(TagsList, "string", helpers.ToSnakeCase("XPhraseAppOTP"), "", "Two-Factor-Authentication token (optional)", false)
AddFlag(TagsList, "int32", helpers.ToSnakeCase("Page"), "", "Page number", false)
AddFlag(TagsList, "int32", helpers.ToSnakeCase("PerPage"), "", "Limit on the number of objects to be returned, between 1 and 100. 25 by default", false)
AddFlag(TagsList, "bool", helpers.ToSnakeCase("ExcludeSystemTags"), "", "excludes tags generated by the system, e.g. job, upload or figma tags", false)
AddFlag(TagsList, "string", helpers.ToSnakeCase("Branch"), "", "specify the branch to use", false)

params.BindPFlags(TagsList.Flags())
Expand Down

0 comments on commit 8f3df1a

Please sign in to comment.