(opts *gitlab.ListGroupsOptions)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 83 | func runGetSubgroups(cmd *cobra.Command) error { |
| 84 | opts := (*gitlab.ListSubgroupsOptions)(assignListGroupOptions(cmd)) |
no test coverage detected