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

Function runNewTag

cmd/new_tag.go:60–72  ·  view source on GitHub ↗
(cmd *cobra.Command, tag string)

Source from the content-addressed store, hash-verified

58}
59
60func runNewTag(cmd *cobra.Command, tag string) error {
61 opts := new(gitlab.CreateTagOptions)
62 opts.Ref = gitlab.String(getFlagString(cmd, "ref"))
63 opts.TagName = gitlab.String(tag)
64 opts.Message = gitlab.String(getFlagString(cmd, "message"))
65 opts.ReleaseDescription = gitlab.String(getFlagString(cmd, "description"))
66 createdTag, err := newTag(getFlagString(cmd, "project"), opts)
67 if err != nil {
68 return err
69 }
70 printTagsOut(getFlagString(cmd, "out"), createdTag)
71 return nil
72}
73
74func newTag(project string, opts *gitlab.CreateTagOptions) (*gitlab.Tag, error) {
75 git, err := newGitlabClient()

Callers 1

new_tag.goFile · 0.85

Calls 3

getFlagStringFunction · 0.85
newTagFunction · 0.85
printTagsOutFunction · 0.85

Tested by

no test coverage detected