Skip to content

Priority inversion when using '@' to load from file #8

@ebekebe

Description

@ebekebe

Consider:

config
      .loadDefaultFiles()
      .loadCliArguments()

The intention is to let CLI arguments override the settings from the default files. However, this logic can be inverted in the following way:

  • a default file include the key @someEntry: /path/to/file/with/content and
  • a cli argument --someEntry what-should-be-used is passed

The result should be that in the final config, someEntry should contain what should be used. The current behavior is that it contains the contents of /path/to/file/with/content

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions