MCPcopy Create free account
hub / github.com/docker/cli / parseEnvFile

Function parseEnvFile

cli/compose/loader/envfile.go:24–26  ·  view source on GitHub ↗

parseEnvFile reads a file with environment variables enumerated by lines “Environment variable names used by the utilities in the Shell and Utilities volume of [IEEE Std 1003.1-2001] consist solely of uppercase letters, digits, and the '_' (underscore) from the characters defined in Portable Charac

(filename string)

Source from the content-addressed store, hash-verified

22// [IEEE Std 1003.1-2001]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
23// [moby-16585]: https://github.com/moby/moby/issues/16585
24func parseEnvFile(filename string) ([]string, error) {
25 return kvfile.Parse(filename, os.LookupEnv)
26}

Callers 3

resolveEnvironmentFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…