Documentation
¶
Overview ¶
Package compose provides helpers for Docker Compose integration. It can write port assignments as dotenv files that Docker Compose picks up via the env_file directive.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvFileComment ¶
func EnvFileComment() string
EnvFileComment returns a comment header for generated dotenv files. This header warns users not to edit the file manually.
func WriteDotenv ¶
func WriteDotenv(path string, assignments []envgen.Assignment) error
WriteDotenv writes the given port assignments to a dotenv file at the specified path. The file is prefixed with a comment header indicating it was generated by morth.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.