Expand description
.env.worktree generation and environment variable injection.
Functionsยง
- copy_
and_ merge_ untracked_ files - Copies declared untracked files and directories from
repo_roottoworktree_path, creating parent directories, and updating matched port variables and COMPOSE_PROJECT_NAME in.envfiles in-place. - copy_
dir_ all - Recursively copies a directory and its contents from
srctodst. - sanitize_
compose_ project_ name - Sanitizes a string to lowercase alphanumerics and underscores for Docker Compose project names.
- update_
env_ content_ with_ ports - Updates port variables in-place within an environment file content string, and appends any missing port variables at the end.
- write_
env_ worktree - Generates
.env.worktreeinside the worktree directory.