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

Function runGetUsers

cmd/get_users.go:63–74  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

61}
62
63func runGetUsers(cmd *cobra.Command) error {
64 opts, err := assignListUsersOptions(cmd)
65 if err != nil {
66 return err
67 }
68 users, err := getUsers(opts)
69 if err != nil {
70 return err
71 }
72 printUsersOut(getFlagString(cmd, "out"), users...)
73 return nil
74}
75
76func getUsers(opts *gitlab.ListUsersOptions) ([]*gitlab.User, error) {
77 git, err := newGitlabClient()

Callers 1

get_users.goFile · 0.85

Calls 4

assignListUsersOptionsFunction · 0.85
getUsersFunction · 0.85
printUsersOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected