()
| 45 | } |
| 46 | |
| 47 | func init() { |
| 48 | newCmd.AddCommand(newTagCmd) |
| 49 | addProjectFlag(newTagCmd) |
| 50 | verifyMarkFlagRequired(newTagCmd, "project") |
| 51 | newTagCmd.Flags().StringP("ref", "r", "", |
| 52 | "The branch name or commit SHA to create branch from") |
| 53 | verifyMarkFlagRequired(newTagCmd, "ref") |
| 54 | newTagCmd.Flags().StringP("message", "m", "", |
| 55 | "Creates annotated tag") |
| 56 | newTagCmd.Flags().StringP("description", "d", "", |
| 57 | "Create a release from the git tag with the description as the release note") |
| 58 | } |
| 59 | |
| 60 | func runNewTag(cmd *cobra.Command, tag string) error { |
| 61 | opts := new(gitlab.CreateTagOptions) |
nothing calls this directly
no test coverage detected