Skip to content

config file merging (if you have more than one config file) #14

Description

@rplevy

Multiple non-targeted sources to merge:

  (load-config
    {:src "foo.json" :as :json}
    {:src "bar.clj", :as :edn})

Multiple targeted sources to merge (because they are targeting the same environment, they will be merged)

  (load-config
    {:target :dev, :src "baz", :as :yml}
    {:target :dev, :src "foo.json", :as :json}
    {:target :dev, :src "bar.clj", :as :edn})

Multiple targeted sources with no merge (they are targeting different environments)

  (load-config
    {:target :dev, :src "foo.json" :as :json}
    {:target [:staging :prod], :src "bar.clj", :as :edn})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions