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

Function validateSortFlagValue

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

Source from the content-addressed store, hash-verified

316}
317
318func validateSortFlagValue(cmd *cobra.Command) error {
319 return validateFlagStringValue([]string{"asc", "desc"},
320 cmd, "sort")
321}
322
323func addActiveFlag(cmd *cobra.Command) {
324 cmd.Flags().Bool("active", true, "Lookup users with active status")

Callers 3

get_users.goFile · 0.85
get_groups.goFile · 0.85
get_projects.goFile · 0.85

Calls 1

validateFlagStringValueFunction · 0.85

Tested by

no test coverage detected