(cmd *cobra.Command, tag string)
| 52 | } |
| 53 | |
| 54 | func runNewRelease(cmd *cobra.Command, tag string) error { |
| 55 | opts := new(gitlab.CreateReleaseOptions) |
| 56 | opts.Description = gitlab.String(getFlagString(cmd, "description")) |
| 57 | createdRelease, err := newRelease(getFlagString(cmd, "project"), tag, opts) |
| 58 | if err != nil { |
| 59 | return err |
| 60 | } |
| 61 | printReleasesOut(getFlagString(cmd, "out"), createdRelease) |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | func newRelease(project string, tag string, opts *gitlab.CreateReleaseOptions) (*gitlab.Release, error) { |
| 66 | git, err := newGitlabClient() |
no test coverage detected