NOTE(@bzon): All getFlag* helpers should be added below getFlagVisibility converts the string flag visiblity to gitlab.VisibilityValue.
(cmd *cobra.Command)
| 482 | |
| 483 | // getFlagVisibility converts the string flag visiblity to gitlab.VisibilityValue. |
| 484 | func getFlagVisibility(cmd *cobra.Command) *gitlab.VisibilityValue { |
| 485 | v := getFlagString(cmd, "visibility") |
| 486 | return gitlab.Visibility(gitlab.VisibilityValue(v)) |
| 487 | } |
| 488 | |
| 489 | // getFlagMergeMethod converts the string flag merge-method to gitlab.MergeMethod |
| 490 | func getFlagMergeMethod(cmd *cobra.Command) *gitlab.MergeMethodValue { |
no test coverage detected