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

Function assignAddProjectMemberOptions

cmd/flags_assigners.go:384–389  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

runNewProjectMemberFunction · 0.85

Calls 1

getFlagAccessLevelFunction · 0.85

Tested by

no test coverage detected