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

add new method configFileChain #325

Closed
wants to merge 3 commits into from
Closed

Conversation

satotake
Copy link

@satotake satotake commented Apr 3, 2017

Although MergeInConfig has quite important functionality, it is necessary to repeat SetConfigFile in order to apply to multiple config files.
This PR add to the wrapper function MergeConfigFileChain of MergeInConfig to make it cheaper to use.

  • set slice of config files as v.configFileChain via SetConfigFileChain
  • index of slice v.confiFileChain define the priority for merge config
    • larger number of index means higher priority (namely, merged later)

Actually, I would like to use this method for hugo considering gohugoio/hugo#2735

@CLAassistant
Copy link

CLAassistant commented Apr 3, 2017

CLA assistant check
All committers have signed the CLA.

@satotake satotake closed this May 18, 2018
This pull request was closed.
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.

2 participants