Skip to content

Import specific node from imported file to specific node in base file via @imports #116

@purrplingcat

Description

@purrplingcat

As title says, this feature can import specified node in importing file to my config file via @import. Specific node will be defined after filename in node import definition separated with :$. Feature allows import node by path definition. Paths has delimiter .

User can specify target node by path. Importing nodes concats with base, see #115

Exapmle:

"@imports":
  mynode: "config/myconf.yaml:$my.node" # imports node my/node from myconf.yaml to mynode in base
  "mynode.sub": "config/myconf2.yaml" # imports whole myconf2.yaml to subnode mynode/sub in base
  "mynode.sub2": "config/myconf3.yaml:$foo" # imports node foo from myconf3.yaml to subnode mynode/sub2 in base
  classic: "config/classic.yaml" # imports whole classic.yaml to node classic in base (implemented yet)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions