Skip to content

Refactor config::get to split off two helper functions#58

Open
elipousson wants to merge 1 commit intorstudio:mainfrom
elipousson:feat-split-helpers
Open

Refactor config::get to split off two helper functions#58
elipousson wants to merge 1 commit intorstudio:mainfrom
elipousson:feat-split-helpers

Conversation

@elipousson
Copy link

This PR splits off two new internal helper functions from config::get:

  • load_config as a wrapper for yaml::yaml.load_file and
  • eval_config for recursive evaluation.

Splitting this functionality out of config::get allows users to avoid the requirement that the config file include a "default" key (per #13) since load_config(file) |> eval_config() covers a good part of the functionality of config::get().

Split off `load_config` wrapper for `yaml::yaml.load_file` and `eval_config` as internal functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant