(cmd *cobra.Command)
| 81 | } |
| 82 | |
| 83 | func runGetSubgroups(cmd *cobra.Command) error { |
| 84 | opts := (*gitlab.ListSubgroupsOptions)(assignListGroupOptions(cmd)) |
| 85 | groups, err := getSubgroups(getFlagString(cmd, "from-group"), opts) |
| 86 | if err != nil { |
| 87 | return err |
| 88 | } |
| 89 | printGroupsOut(getFlagString(cmd, "out"), groups...) |
| 90 | return nil |
| 91 | } |
| 92 | |
| 93 | func getSubgroups(group string, opts *gitlab.ListSubgroupsOptions) ([]*gitlab.Group, error) { |
| 94 | git, err := newGitlabClient() |
no test coverage detected