Documentation
¶
Index ¶
- Variables
- func AppendUniqueLines(path string, lines []string) error
- func EnsureFile(path string) error
- func GenerateFromTemplateDir(templateRoot, outputRoot string) error
- func RemoveDir(path string) error
- func RenderTemplate(tmplPath string) ([]byte, error)
- func ValidateDependency(stack, dependency string) bool
- func WithFileLock(path string, fn func() error) error
- func WriteFile(file FileInfo) error
- func WriteMultipleFiles(files []FileInfo) error
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Fs = afero.NewOsFs()
Functions ¶
func AppendUniqueLines ¶
func EnsureFile ¶
TODO: Some of these were completely vibe coded, just need to refactor a bit to make more consistent
func GenerateFromTemplateDir ¶
func RenderTemplate ¶
func ValidateDependency ¶
stack is the parent tech, check if dependency is compatible with it.
func WithFileLock ¶
func WriteMultipleFiles ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.