GroupFromNode provides a special kind of ModuleFromNode syntax that allows to omit the module name when defining inine configuration. If it is not present, name in defaultModule is used.
(defaultModule string, args []string, inlineCfg config.Node, globals map[string]interface{}, moduleIface interface{})
| 151 | // to omit the module name when defining inine configuration. If it is not |
| 152 | // present, name in defaultModule is used. |
| 153 | func GroupFromNode(defaultModule string, args []string, inlineCfg config.Node, globals map[string]interface{}, moduleIface interface{}) error { |
| 154 | if len(args) == 0 { |
| 155 | args = append(args, defaultModule) |
| 156 | } |
| 157 | return ModuleFromNode("", args, inlineCfg, globals, moduleIface) |
| 158 | } |
nothing calls this directly
no test coverage detected