Documentation
¶
Index ¶
- func CopyDir(fileSys fs.FS, src, dest string, draftConfig *config.DraftConfig, ...) error
- func CopyDirWithTemplates(fileSys fs.FS, src, dest string, draftConfig *config.DraftConfig, ...) error
- func EnsureDirectory(dir string) error
- func EnsureFile(file string) error
- func Exists(path string) (bool, error)
- func SymlinkWithFallback(oldname, newname string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
func CopyDir( fileSys fs.FS, src, dest string, draftConfig *config.DraftConfig, templateWriter templatewriter.TemplateWriter) error
func CopyDirWithTemplates ¶ added in v0.0.37
func CopyDirWithTemplates( fileSys fs.FS, src, dest string, draftConfig *config.DraftConfig, templateWriter templatewriter.TemplateWriter) error
CopyDirWithTemplates - Handles Gotemplate processing and writing
func EnsureDirectory ¶
EnsureDirectory checks if a directory exists and creates it if it doesn't
func EnsureFile ¶
EnsureFile checks if a file exists and creates it if it doesn't
func SymlinkWithFallback ¶
SymlinkWithFallback attempts to symlink a file or directory, but falls back to a move operation in the event of the user not having the required privileges to create the symlink.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.