(orgOption string, repoI ghrepo.Interface, includeParents bool)
| 112 | } |
| 113 | |
| 114 | func NoRulesetsFoundError(orgOption string, repoI ghrepo.Interface, includeParents bool) error { |
| 115 | entityName := EntityName(orgOption, repoI) |
| 116 | parentsMsg := "" |
| 117 | if includeParents { |
| 118 | parentsMsg = " or its parents" |
| 119 | } |
| 120 | return cmdutil.NewNoResultsError(fmt.Sprintf("no rulesets found in %s%s", entityName, parentsMsg)) |
| 121 | } |
| 122 | |
| 123 | func EntityName(orgOption string, repoI ghrepo.Interface) string { |
| 124 | if orgOption != "" { |
no test coverage detected