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

Function runGetGroups

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

Source from the content-addressed store, hash-verified

59}
60
61func 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
71func getGroups(opts *gitlab.ListGroupsOptions) ([]*gitlab.Group, error) {
72 git, err := newGitlabClient()

Callers 1

get_groups.goFile · 0.85

Calls 4

assignListGroupOptionsFunction · 0.85
getGroupsFunction · 0.85
printGroupsOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected