Documentation
¶
Index ¶
- func ContainsGlobChars(path string) bool
- func CopyPassthrough(mappings []config.PassthroughMapping, projectRoot, outputDir string) error
- func CopyPassthroughWithValidation(mappings []config.PassthroughMapping, projectRoot, outputDir string, ...) error
- func CopyStatic(staticDir, outputDir string) error
- func GlobRoot(pattern string) string
- func MatchExclude(patterns []string, relPath string) (bool, error)
- func MatchExcludeNormalized(normalized []string, relPath string) (bool, error)
- func NormalizeExcludePatterns(patterns []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsGlobChars ¶
ContainsGlobChars reports whether path contains glob metacharacters.
func CopyPassthrough ¶
func CopyPassthrough(mappings []config.PassthroughMapping, projectRoot, outputDir string) error
CopyPassthrough copies files according to passthrough mappings. From paths are resolved relative to projectRoot per §1h. Returns an error if a From path does not exist.
func CopyPassthroughWithValidation ¶
func CopyPassthroughWithValidation(mappings []config.PassthroughMapping, projectRoot, outputDir string, managedDirs []string) error
CopyPassthroughWithValidation copies files according to passthrough mappings, silently ignoring any mapping where the "from" path resolves to a managed directory (content, layouts, assets, static, data).
func CopyStatic ¶
CopyStatic copies all files from staticDir to outputDir. If staticDir does not exist or is empty, it returns nil (no error).
func MatchExclude ¶
MatchExclude reports whether relPath matches any of the exclude patterns.
func MatchExcludeNormalized ¶
func NormalizeExcludePatterns ¶
NormalizeExcludePatterns pre-normalizes exclude patterns for repeated matching.
Types ¶
This section is empty.