ComputeFrontmatterHashFromFile computes the frontmatter hash for a workflow file using text-based approach (no YAML parsing) to match JavaScript implementation
(filePath string, cache *ImportCache)
| 138 | // ComputeFrontmatterHashFromFile computes the frontmatter hash for a workflow file |
| 139 | // using text-based approach (no YAML parsing) to match JavaScript implementation |
| 140 | func ComputeFrontmatterHashFromFile(filePath string, cache *ImportCache) (string, error) { |
| 141 | return ComputeFrontmatterHashFromFileWithReader(filePath, cache, DefaultFileReader) |
| 142 | } |
| 143 | |
| 144 | // ComputeFrontmatterHashFromFileWithParsedFrontmatter computes the frontmatter hash using |
| 145 | // a pre-parsed frontmatter map. The parsedFrontmatter must not be nil; callers are responsible |