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

Function runGetSubgroups

cmd/get_groups.go:83–91  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

81}
82
83func 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
93func getSubgroups(group string, opts *gitlab.ListSubgroupsOptions) ([]*gitlab.Group, error) {
94 git, err := newGitlabClient()

Callers 1

get_groups.goFile · 0.85

Calls 4

assignListGroupOptionsFunction · 0.85
getSubgroupsFunction · 0.85
getFlagStringFunction · 0.85
printGroupsOutFunction · 0.85

Tested by

no test coverage detected