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

Function runNewProject

cmd/new_project.go:59–72  ·  view source on GitHub ↗
(cmd *cobra.Command, name string)

Source from the content-addressed store, hash-verified

57}
58
59func runNewProject(cmd *cobra.Command, name string) error {
60 opts, err := assignCreateProjectOptions(cmd)
61 if err != nil {
62 return err
63 }
64 opts.Name = gitlab.String(name)
65 opts.Path = gitlab.String(name)
66 p, err := newProject(opts)
67 if err != nil {
68 return err
69 }
70 printProjectsOut(getFlagString(cmd, "out"), p)
71 return nil
72}
73
74func newProject(opts *gitlab.CreateProjectOptions) (*gitlab.Project, error) {
75 git, err := newGitlabClient()

Callers 1

new_project.goFile · 0.85

Calls 4

newProjectFunction · 0.85
printProjectsOutFunction · 0.85
getFlagStringFunction · 0.85

Tested by

no test coverage detected