()
| 40 | } |
| 41 | |
| 42 | func init() { |
| 43 | newCmd.AddCommand(newBranchCmd) |
| 44 | addProjectFlag(newBranchCmd) |
| 45 | verifyMarkFlagRequired(newBranchCmd, "project") |
| 46 | newBranchCmd.Flags().StringP("ref", "r", "", |
| 47 | "The branch name or commit SHA to create branch from") |
| 48 | verifyMarkFlagRequired(newBranchCmd, "ref") |
| 49 | } |
| 50 | |
| 51 | func runNewBranch(cmd *cobra.Command, branch string) error { |
| 52 | opts := new(gitlab.CreateBranchOptions) |
nothing calls this directly
no test coverage detected