{"modulePath":"github.com/docker/compose-cli","version":"v1.0.7","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Constants\n\n```go\nconst (\n\t// ConfigFileName is the name of config file\n\tConfigFileName = \"config.json\"\n\t// ConfigFileDir is the default folder where the config file is stored\n\tConfigFileDir = \".docker\"\n\t// ConfigFlagName is the name of the config flag\n\tConfigFlagName = \"config\"\n)\n```\n\n## Functions\n\n```go\nfunc Dir(ctx context.Context) string\n```\nDir returns the config directory path\n\n```go\nfunc WithDir(ctx context.Context, path string) context.Context\n```\nWithDir sets the config directory path in the context\n\n```go\nfunc WriteCurrentContext(dir string, name string) error\n```\nWriteCurrentContext writes the selected current context to the Docker configuration file. Note, the validity of the context is not checked.\n\n## Types\n\n```go\ntype File struct {\n\tCurrentContext string `json:\"currentContext,omitempty\"`\n}\n```\nFile contains the current context from the docker configuration file\n\n```go\nfunc LoadFile(dir string) (*File, error)\n```\nLoadFile loads the docker configuration\n\n","path":"github.com/docker/compose-cli/config","name":"config","synopsis":"","isRedistributable":true}
