assignListProjectMembersOptions assigns the flags' values to gitlab.ListProjectMembersOptions fields. If a flag's default value is not changed by the caller, it's value will not be assigned to the associated gitlab.ListProjectMembersOptions field.
(cmd *cobra.Command)
| 540 | // If a flag's default value is not changed by the caller, |
| 541 | // it's value will not be assigned to the associated gitlab.ListProjectMembersOptions field. |
| 542 | func assignListProjectMembersOptions(cmd *cobra.Command) *gitlab.ListProjectMembersOptions { |
| 543 | opts := new(gitlab.ListProjectMembersOptions) |
| 544 | if cmd.Flag("page").Changed { |
| 545 | opts.Page = getFlagInt(cmd, "page") |
| 546 | } |
| 547 | if cmd.Flag("per-page").Changed { |
| 548 | opts.PerPage = getFlagInt(cmd, "per-page") |
| 549 | } |
| 550 | if cmd.Flag("query").Changed { |
| 551 | opts.Query = gitlab.String(getFlagString(cmd, "query")) |
| 552 | } |
| 553 | return opts |
| 554 | } |
| 555 | |
| 556 | // assignListGroupMembersOptions assigns the flags' values to gitlab.ListGroupMembersOptions fields. |
| 557 | // If a flag's default value is not changed by the caller, |
no test coverage detected