Merge pull request #6382 from thaJeztah/rm_ParseEnvFile

opts: remove deprecated ParseEnvFile
This commit is contained in:
Austin Vazquez
2025-08-27 12:25:54 -07:00
committed by GitHub

View File

@ -1,14 +0,0 @@
package opts
import (
"os"
"github.com/docker/cli/pkg/kvfile"
)
// ParseEnvFile reads a file with environment variables enumerated by lines
//
// Deprecated: use [kvfile.Parse] and pass [os.LookupEnv] to lookup env-vars from the current environment.
func ParseEnvFile(filename string) ([]string, error) {
return kvfile.Parse(filename, os.LookupEnv)
}