Xamal.EnvFile (xamal v0.3.0)

Copy Markdown View Source

Generates env files for deployment.

Encodes an env map as KEY=value lines with proper escaping. Compatible with Kamal's env file format.

Summary

Functions

Generate env file content from a map of key-value pairs. Returns a string with one KEY=value per line.

Write env file content to a path.

Functions

encode(env)

Generate env file content from a map of key-value pairs. Returns a string with one KEY=value per line.

write!(env, path)

Write env file content to a path.