compose

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL