MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / assignEditProjectMemberOptions

Function assignEditProjectMemberOptions

cmd/flags_assigners.go:420–425  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
420func 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,

Callers 1

runEditProjectMemberFunction · 0.85

Calls 1

getFlagAccessLevelFunction · 0.85

Tested by

no test coverage detected