Documentation
¶
Overview ¶
Copyright 2026 YLD Limited SPDX-License-Identifier: Apache-2.0 Package fsutil provides filesystem utilities for parsing HCL input (files or directories), listing files by extension, and writing output files with automatic directory creation.
Index ¶
- Variables
- func HasGeneratedMarker(path, provider string) (bool, error)
- func ListFilesWithExtensions(path string, recursive bool, exts ...string) ([]string, error)
- func ParseHCLInput(path string, recursive bool) (hcl.Body, error)
- func PrependGeneratedMarker(content []byte, provider string) []byte
- func PruneStaleGeneratedYAML(outputDir string, currentOutputs map[string]struct{}, provider string) error
- func WriteFile(path string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHCLFiles = errors.New("no HCL files found in input")
ErrNoHCLFiles is returned when no HCL files are found in the given path.
Functions ¶
func HasGeneratedMarker ¶
HasGeneratedMarker reports whether path has cinzel markers for provider.
func ListFilesWithExtensions ¶
ListFilesWithExtensions returns files under path matching the given extensions.
func ParseHCLInput ¶
ParseHCLInput parses one or more HCL files from path and returns a merged body.
func PrependGeneratedMarker ¶
PrependGeneratedMarker prepends standardized cinzel generation markers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.