MCPcopy
hub / github.com/go-task/task / isTypeAllowed

Function isTypeAllowed

internal/env/env.go:54–61  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

52}
53
54func isTypeAllowed(v any) bool {
55 switch v.(type) {
56 case string, bool, int, float32, float64:
57 return true
58 default:
59 return false
60 }
61}
62
63func GetTaskEnv(key string) string {
64 return os.Getenv(taskVarPrefix + key)

Callers 1

GetFromVarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…