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

Function ConfigFromContext

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

Source from the content-addressed store, hash-verified

127}
128
129func ConfigFromContext(ctx context.Context) *Config {
130 if v := ctx.Value(configKey); v != nil {
131 return v.(*Config)
132 }
133 return nil
134}
135
136func ConfigFromCmd(cmd *cobra.Command) *Config {
137 return ConfigFromContext(cmd.Context())

Callers 15

PerformMethod · 0.92
runTUIMethod · 0.92
PerformMethod · 0.92
PerformMethod · 0.92
LoadStoresFunction · 0.92
RunTUIMethod · 0.92
RunTUIMethod · 0.92
runTUIMethod · 0.92
runTUIMethod · 0.92
PerformMethod · 0.92
runMethod · 0.92
performMethod · 0.92

Calls

no outgoing calls

Tested by 1

runMethod · 0.74