MCPcopy Index your code
hub / github.com/apache/answer / TryToInstallByEnv

Function TryToInstallByEnv

internal/install/install_from_env.go:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func TryToInstallByEnv() (installByEnv bool, err error) {
56 env := loadEnv()
57 if len(env.AutoInstall) == 0 {
58 return false, nil
59 }
60 fmt.Println("[auto-install] try to install by environment variable")
61 return true, initByEnv(env)
62}
63
64func loadEnv() (env *Env) {
65 return &Env{

Callers 1

RunFunction · 0.85

Calls 2

loadEnvFunction · 0.85
initByEnvFunction · 0.85

Tested by

no test coverage detected