MCPcopy Index your code
hub / github.com/rilldata/rill / lookupDotenv

Function lookupDotenv

cli/cmd/devtool/start.go:834–840  ·  view source on GitHub ↗

lookupDotenv returns a value from the .env file. NOTE: Not using godotenv.Load() since the OpenTelemetry-related env vars clash with `docker compose`.

(key string)

Source from the content-addressed store, hash-verified

832// lookupDotenv returns a value from the .env file.
833// NOTE: Not using godotenv.Load() since the OpenTelemetry-related env vars clash with `docker compose`.
834func lookupDotenv(key string) string {
835 env, err := godotenv.Read()
836 if err != nil {
837 return ""
838 }
839 return env[key]
840}
841
842// stateDirectory returns the directory where the devtool's state is stored.
843// Deleting this directory will reset the state of the local development environment.

Callers 7

awaitPostgresMethod · 0.85
awaitRedisMethod · 0.85
awaitAdminMethod · 0.85
awaitRuntimeMethod · 0.85
awaitUIMethod · 0.85
prepareStripeConfigFunction · 0.85
stateDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected