(cmd *cobra.Command)
| 59 | } |
| 60 | |
| 61 | func runGetGroups(cmd *cobra.Command) error { |
| 62 | opts := assignListGroupOptions(cmd) |
| 63 | groups, err := getGroups(opts) |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | printGroupsOut(getFlagString(cmd, "out"), groups...) |
| 68 | return nil |
| 69 | } |
| 70 | |
| 71 | func getGroups(opts *gitlab.ListGroupsOptions) ([]*gitlab.Group, error) { |
| 72 | git, err := newGitlabClient() |
no test coverage detected