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

Function getFlagInt

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

Source from the content-addressed store, hash-verified

520}
521
522func getFlagInt(cmd *cobra.Command, flag string) int {
523 i, err := cmd.Flags().GetInt(flag)
524 if err != nil {
525 glog.Fatalf("error accessing flag %s for command %s: %v",
526 flag, cmd.Name(), err)
527 }
528 return i
529}
530
531func getFlagAccessLevel(cmd *cobra.Command, flag string) gitlab.AccessLevelValue {
532 i, err := cmd.Flags().GetInt(flag)

Callers 11

runGetBranchFunction · 0.85
runGetProjectHooksFunction · 0.85
runGetSSHKeyForUserFunction · 0.85
assignListProjectOptionsFunction · 0.85
assignListUsersOptionsFunction · 0.85
assignListGroupOptionsFunction · 0.85
assignCreateUserOptionsFunction · 0.85
assignEditUserOptionsFunction · 0.85
validateFlagIntValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected