Kitura / Configuration

Hierarchical configuration manager for Swift applications

Home Page:https://kitura.github.io/Configuration/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support loading files relative to project root directory

tunniclm opened this issue · comments

Commonly we store configuration files in the project root (or a subdirectory of it like "config").
It is desirable to be able to specify:

manager.load(file: "config.json", relativeFrom: .project)

Additionally, it would be good to have this continue to work if the executable is not located in .build/debug or .build/release, for example, in some other part of the project tree. Therefore the project root should be where the Package.swift resides.

I have provided a PR #11 that implement both this and #13

Closed by PR #16.