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

Function getFlagVisibility

cmd/flags_definers.go:484–487  ·  view source on GitHub ↗

NOTE(@bzon): All getFlag* helpers should be added below getFlagVisibility converts the string flag visiblity to gitlab.VisibilityValue.

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

482
483// getFlagVisibility converts the string flag visiblity to gitlab.VisibilityValue.
484func 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
490func getFlagMergeMethod(cmd *cobra.Command) *gitlab.MergeMethodValue {

Callers 3

assignListProjectOptionsFunction · 0.85
assignCreateGroupOptionsFunction · 0.85

Calls 1

getFlagStringFunction · 0.85

Tested by

no test coverage detected