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

Function getFlagString

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

Source from the content-addressed store, hash-verified

502}
503
504func getFlagString(cmd *cobra.Command, flag string) string {
505 s, err := cmd.Flags().GetString(flag)
506 if err != nil {
507 glog.Fatalf("error accessing flag %s for command %s: %v",
508 flag, cmd.Name(), err)
509 }
510 return s
511}
512
513func getFlagBool(cmd *cobra.Command, flag string) bool {
514 b, err := cmd.Flags().GetBool(flag)

Callers 15

runGetBranchFunction · 0.85
runGetProjectHooksFunction · 0.85
runDescGroupFunction · 0.85
runGetUsersFunction · 0.85
get_groups.goFile · 0.85
runGetGroupsFunction · 0.85
runGetSubgroupsFunction · 0.85
delete_tag.goFile · 0.85
runNewReleaseFunction · 0.85
runNewProjectHookFunction · 0.85
edit_member.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected