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

Function writeImportDirective

pkg/cli/imports.go:416–422  ·  view source on GitHub ↗

writeImportDirective writes an {{#import}} or {{#import?}} directive for workflowSpec.

(w *strings.Builder, workflowSpec string, isOptional bool)

Source from the content-addressed store, hash-verified

414
415// writeImportDirective writes an {{#import}} or {{#import?}} directive for workflowSpec.
416func writeImportDirective(w *strings.Builder, workflowSpec string, isOptional bool) {
417 if isOptional {
418 w.WriteString("{{#import? " + workflowSpec + "}}\n")
419 } else {
420 w.WriteString("{{#import " + workflowSpec + "}}\n")
421 }
422}

Callers 2

processIncludesInContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected