MCPcopy Create free account
hub / github.com/anchordotdev/cli / CalledAsFromContext

Function CalledAsFromContext

cli.go:122–127  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

120)
121
122func CalledAsFromContext(ctx context.Context) string {
123 if calledAs, ok := ctx.Value(calledAsKey).(string); ok {
124 return calledAs
125 }
126 return ""
127}
128
129func ConfigFromContext(ctx context.Context) *Config {
130 if v := ctx.Value(configKey); v != nil {

Callers 1

runTUIMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected