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

Function isWorkflowSpecFormat

pkg/cli/imports.go:402–404  ·  view source on GitHub ↗

isWorkflowSpecFormat reports whether path is a workflowspec-style reference. It delegates to parser.IsWorkflowSpec to keep CLI and parser behavior consistent.

(path string)

Source from the content-addressed store, hash-verified

400// isWorkflowSpecFormat reports whether path is a workflowspec-style reference.
401// It delegates to parser.IsWorkflowSpec to keep CLI and parser behavior consistent.
402func isWorkflowSpecFormat(path string) bool {
403 return parser.IsWorkflowSpec(path)
404}
405
406// splitImportPath splits "file.md#Section" into ("file.md", "Section").
407// If no "#" is present, returns (includePath, "").

Calls 1

IsWorkflowSpecFunction · 0.92

Tested by 1

TestIsWorkflowSpecFormatFunction · 0.68