assignAddProjectMemberOptions assigns the flags' values to gitlab.AddProjectMemberOptions fields. If a flag's default value is not changed by the caller, it's value will not be assigned to the associated gitlab.AddProjectMemberOptions field.
(cmd *cobra.Command)
| 382 | // If a flag's default value is not changed by the caller, |
| 383 | // it's value will not be assigned to the associated gitlab.AddProjectMemberOptions field. |
| 384 | func assignAddProjectMemberOptions(cmd *cobra.Command) (*gitlab.AddProjectMemberOptions, error) { |
| 385 | opts := new(gitlab.AddProjectMemberOptions) |
| 386 | |
| 387 | opts.AccessLevel = gitlab.AccessLevel(getFlagAccessLevel(cmd, "access-level")) |
| 388 | return opts, nil |
| 389 | } |
| 390 | |
| 391 | // assignAddGroupMemberOptions assigns the flags' values to gitlab.AddGroupMemberOptions fields. |
| 392 | // If a flag's default value is not changed by the caller, |
no test coverage detected