MCPcopy Create free account
hub / github.com/github/gh-aw / resolveInlinedImports

Function resolveInlinedImports

pkg/workflow/workflow_builder.go:450–452  ·  view source on GitHub ↗

resolveInlinedImports returns true if inlined-imports is enabled. It reads the value directly from the raw (pre-parsed) frontmatter map, which is always populated regardless of whether ParseFrontmatterConfig succeeded.

(rawFrontmatter map[string]any)

Source from the content-addressed store, hash-verified

448// It reads the value directly from the raw (pre-parsed) frontmatter map, which is always
449// populated regardless of whether ParseFrontmatterConfig succeeded.
450func resolveInlinedImports(rawFrontmatter map[string]any) bool {
451 return ParseBoolFromConfig(rawFrontmatter, "inlined-imports", nil)
452}
453
454// extractYAMLSections extracts YAML configuration sections from frontmatter
455func (c *Compiler) extractYAMLSections(frontmatter map[string]any, workflowData *WorkflowData) error {

Callers 1

Calls 1

ParseBoolFromConfigFunction · 0.85

Tested by

no test coverage detected