Skip to content

Handle multiline environment variables #120

@Aegdesil

Description

@Aegdesil

I have an issue when parsing multiline environment variables, the cli is not able to parse them.

export TEST_VALUE='first line
next line'

env | jinja2 --format env my_file.txt

This raises a ValueError because the environment variables file is parsed line by line, and the second line does not contain a variable name.

How can I handle such variables ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions