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

Function getFlagAccessLevel

cmd/flags_definers.go:531–538  ·  view source on GitHub ↗
(cmd *cobra.Command, flag string)

Source from the content-addressed store, hash-verified

529}
530
531func getFlagAccessLevel(cmd *cobra.Command, flag string) gitlab.AccessLevelValue {
532 i, err := cmd.Flags().GetInt(flag)
533 if err != nil {
534 glog.Fatalf("error accessing flag %s for command %s: %v",
535 flag, cmd.Name(), err)
536 }
537 return gitlab.AccessLevelValue(i)
538}

Calls

no outgoing calls

Tested by

no test coverage detected