assignEditProjectMemberOptions assigns the flags' values to gitlab.EditProjectMemberOptions fields. If a flag's default value is not changed by the caller, it's value will not be assigned to the associated gitlab.EditProjectMemberOptions field.
(cmd *cobra.Command)
| 418 | // If a flag's default value is not changed by the caller, |
| 419 | // it's value will not be assigned to the associated gitlab.EditProjectMemberOptions field. |
| 420 | func assignEditProjectMemberOptions(cmd *cobra.Command) (*gitlab.EditProjectMemberOptions, error) { |
| 421 | opts := new(gitlab.EditProjectMemberOptions) |
| 422 | |
| 423 | opts.AccessLevel = gitlab.AccessLevel(getFlagAccessLevel(cmd, "access-level")) |
| 424 | return opts, nil |
| 425 | } |
| 426 | |
| 427 | // assignCreateUserOptions assigns the flags' values to gitlab.CreateUserOptions fields. |
| 428 | // If a flag's default value is not changed by the caller, |
no test coverage detected