MCPcopy Create free account
hub / github.com/github/gh-aw / hasLegacyCliProxyFeatureEnabled

Function hasLegacyCliProxyFeatureEnabled

pkg/cli/codemod_cli_proxy_mode.go:42–57  ·  view source on GitHub ↗
(frontmatter map[string]any)

Source from the content-addressed store, hash-verified

40}
41
42func hasLegacyCliProxyFeatureEnabled(frontmatter map[string]any) bool {
43 featuresAny, ok := frontmatter["features"]
44 if !ok {
45 return false
46 }
47 featuresMap, ok := featuresAny.(map[string]any)
48 if !ok {
49 return false
50 }
51 value, has := featuresMap["cli-proxy"]
52 if !has {
53 return false
54 }
55 enabled, ok := value.(bool)
56 return ok && enabled
57}
58
59func hasToolsGitHubMode(frontmatter map[string]any) bool {
60 toolsAny, hasTools := frontmatter["tools"]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected