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

Function validateVisibilityFlagValue

cmd/flags_definers.go:424–427  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

422}
423
424func validateVisibilityFlagValue(cmd *cobra.Command) error {
425 return validateFlagStringValue([]string{"public", "private", "internal"},
426 cmd, "visibility")
427}
428
429func addRequestAccessEnabledFlag(cmd *cobra.Command) {
430 cmd.Flags().Bool("request-access-enabled", false, "Enable request access")

Callers 5

new_group.goFile · 0.85
get_projects.goFile · 0.85
new_project.goFile · 0.85
edit_group.goFile · 0.85
edit_project.goFile · 0.85

Calls 1

validateFlagStringValueFunction · 0.85

Tested by

no test coverage detected