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

Function getGroups

cmd/get_groups.go:71–81  ·  view source on GitHub ↗
(opts *gitlab.ListGroupsOptions)

Source from the content-addressed store, hash-verified

69}
70
71func getGroups(opts *gitlab.ListGroupsOptions) ([]*gitlab.Group, error) {
72 git, err := newGitlabClient()
73 if err != nil {
74 return nil, err
75 }
76 groups, _, err := git.Groups.ListGroups(opts)
77 if err != nil {
78 return nil, err
79 }
80 return groups, nil
81}
82
83func runGetSubgroups(cmd *cobra.Command) error {
84 opts := (*gitlab.ListSubgroupsOptions)(assignListGroupOptions(cmd))

Callers 1

runGetGroupsFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by

no test coverage detected