MCPcopy Index your code
hub / github.com/github/github-mcp-server / RequiredIcons

Function RequiredIcons

pkg/octicons/octicons.go:23–35  ·  view source on GitHub ↗

RequiredIcons returns the list of icon names from required_icons.txt. This is the single source of truth for which icons should be embedded.

()

Source from the content-addressed store, hash-verified

21// RequiredIcons returns the list of icon names from required_icons.txt.
22// This is the single source of truth for which icons should be embedded.
23func RequiredIcons() []string {
24 var icons []string
25 scanner := bufio.NewScanner(strings.NewReader(requiredIconsTxt))
26 for scanner.Scan() {
27 line := strings.TrimSpace(scanner.Text())
28 // Skip empty lines and comments
29 if line == "" || strings.HasPrefix(line, "#") {
30 continue
31 }
32 icons = append(icons, line)
33 }
34 return icons
35}
36
37// Theme represents the color theme of an icon.
38type Theme string

Callers 1

TestEmbeddedIconsExistFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEmbeddedIconsExistFunction · 0.68