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

Function parseFeatureValue

pkg/workflow/features.go:82–90  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

80}
81
82func parseFeatureValue(value any) (bool, bool) {
83 if enabled, ok := value.(bool); ok {
84 return enabled, true
85 }
86 if strVal, ok := value.(string); ok {
87 return strVal != "", true
88 }
89 return false, false
90}
91
92func isFeatureInEnvironment(flagLower string, logEnabled bool) bool {
93 features := os.Getenv("GH_AW_FEATURES")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected