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

Function assignListGroupMembersOptions

cmd/flags_assigners.go:559–571  ·  view source on GitHub ↗

assignListGroupMembersOptions assigns the flags' values to gitlab.ListGroupMembersOptions fields. If a flag's default value is not changed by the caller, it's value will not be assigned to the associated gitlab.ListGroupMembersOptions field.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

557// If a flag's default value is not changed by the caller,
558// it's value will not be assigned to the associated gitlab.ListGroupMembersOptions field.
559func assignListGroupMembersOptions(cmd *cobra.Command) *gitlab.ListGroupMembersOptions {
560 opts := new(gitlab.ListGroupMembersOptions)
561 if cmd.Flag("page").Changed {
562 opts.Page = getFlagInt(cmd, "page")
563 }
564 if cmd.Flag("per-page").Changed {
565 opts.PerPage = getFlagInt(cmd, "per-page")
566 }
567 if cmd.Flag("query").Changed {
568 opts.Query = gitlab.String(getFlagString(cmd, "query"))
569 }
570 return opts
571}
572
573// assignAddSSHKeyOptions assigns the flags' values to gitlab.AddSSHKeyOptions fields.
574// If a flag's default value is not changed by the caller,

Callers 1

runGetGroupMembersFunction · 0.85

Calls 2

getFlagIntFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected