(cmd *cobra.Command, tag string)
| 58 | } |
| 59 | |
| 60 | func 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 | |
| 74 | func newTag(project string, opts *gitlab.CreateTagOptions) (*gitlab.Tag, error) { |
| 75 | git, err := newGitlabClient() |
no test coverage detected