Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDestDir ¶
GetDestDir computes absolute path to destination directory.
func GetSourceDir ¶
GetSourceDir computes absolute path to source directory.
func WalkFunc ¶
func WalkFunc(op FileOp) fs.WalkDirFunc
WalkFunc wraps fs.WalkDirFunc with a specific FileOp.
Types ¶
type Change ¶
type Change struct { Replace string `yaml:"replace"` With string `yaml:"with"` Default string `yaml:"default"` }
Change represents a single change to make to copied files
type Config ¶
type Config struct { Message string `yaml:"message"` Path string `yaml:"path"` Changes map[string]*Change `yaml:"changes"` ModifyFilenames bool `yaml:"modifyfilenames"` }
Config represents configuration to copy and modify files
Click to show internal directories.
Click to hide internal directories.