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

Function getFlagBool

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

Source from the content-addressed store, hash-verified

511}
512
513func getFlagBool(cmd *cobra.Command, flag string) bool {
514 b, err := cmd.Flags().GetBool(flag)
515 if err != nil {
516 glog.Fatalf("error accessing flag %s for command %s: %v",
517 flag, cmd.Name(), err)
518 }
519 return b
520}
521
522func getFlagInt(cmd *cobra.Command, flag string) int {
523 i, err := cmd.Flags().GetInt(flag)

Callers 11

completion.goFile · 0.85
new_user.goFile · 0.85
assignListProjectOptionsFunction · 0.85
assignListUsersOptionsFunction · 0.85
assignListGroupOptionsFunction · 0.85
assignCreateGroupOptionsFunction · 0.85
assignCreateUserOptionsFunction · 0.85
assignEditUserOptionsFunction · 0.85
runProtectBranchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected