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

Function init

cmd/new_tag.go:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func 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
60func runNewTag(cmd *cobra.Command, tag string) error {
61 opts := new(gitlab.CreateTagOptions)

Callers

nothing calls this directly

Calls 2

addProjectFlagFunction · 0.85
verifyMarkFlagRequiredFunction · 0.85

Tested by

no test coverage detected