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

Function runNewUser

cmd/new_user.go:59–71  ·  view source on GitHub ↗
(cmd *cobra.Command, username string)

Source from the content-addressed store, hash-verified

57}
58
59func runNewUser(cmd *cobra.Command, username string) error {
60 opts, err := assignCreateUserOptions(cmd)
61 if err != nil {
62 return err
63 }
64 opts.Username = gitlab.String(username)
65 user, err := newUser(opts)
66 if err != nil {
67 return err
68 }
69 printUsersOut(getFlagString(cmd, "out"), user)
70 return nil
71}
72
73func newUser(opt *gitlab.CreateUserOptions) (*gitlab.User, error) {
74 git, err := newGitlabClient()

Callers 1

new_user.goFile · 0.85

Calls 4

assignCreateUserOptionsFunction · 0.85
newUserFunction · 0.85
printUsersOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected