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

Function runNewGroup

cmd/new_group.go:55–68  ·  view source on GitHub ↗
(cmd *cobra.Command, name string)

Source from the content-addressed store, hash-verified

53}
54
55func runNewGroup(cmd *cobra.Command, name string) error {
56 opts, err := assignCreateGroupOptions(cmd)
57 if err != nil {
58 return err
59 }
60 opts.Path = gitlab.String(name)
61 opts.Name = gitlab.String(name)
62 group, err := newGroup(opts)
63 if err != nil {
64 return err
65 }
66 printGroupsOut(getFlagString(cmd, "out"), group)
67 return nil
68}
69
70func newGroup(opts *gitlab.CreateGroupOptions) (*gitlab.Group, error) {
71 git, err := newGitlabClient()

Callers 1

new_group.goFile · 0.85

Calls 4

assignCreateGroupOptionsFunction · 0.85
newGroupFunction · 0.85
printGroupsOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected