Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move parsing key-value files to a separate package #5502

Merged
merged 1 commit into from
Oct 4, 2024

Commits on Oct 4, 2024

  1. move parsing key-value files to a separate package

    Move the code for parsing key-value files, such as used for
    env-files and label-files to a separate package. This allows
    other projects (such as compose) to use the same parsing
    logic, but provide custom lookup functions for their situation
    (which is slightly different).
    
    The new package provides utilities for parsing key-value files
    for either a file or an io.Reader. Most tests for EnvFile were
    now testing functionality that's already tested in the new package,
    so were (re)moved.
    
    Co-authored-by: Nicolas De Loof <[email protected]>
    Signed-off-by: Nicolas De Loof <[email protected]>
    Signed-off-by: Sebastiaan van Stijn <[email protected]>
    ndeloof authored and thaJeztah committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    9ecfe4f View commit details
    Browse the repository at this point in the history