static

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsGlobChars

func ContainsGlobChars(path string) bool

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

func CopyStatic(staticDir, outputDir string) error

CopyStatic copies all files from staticDir to outputDir. If staticDir does not exist or is empty, it returns nil (no error).

func GlobRoot

func GlobRoot(pattern string) string

GlobRoot returns the longest directory prefix before any glob metacharacter.

func MatchExclude

func MatchExclude(patterns []string, relPath string) (bool, error)

MatchExclude reports whether relPath matches any of the exclude patterns.

func MatchExcludeNormalized

func MatchExcludeNormalized(normalized []string, relPath string) (bool, error)

func NormalizeExcludePatterns

func NormalizeExcludePatterns(patterns []string) []string

NormalizeExcludePatterns pre-normalizes exclude patterns for repeated matching.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL