Documentation
¶
Index ¶
- Variables
- func ApplyTemplate(src io.Reader, dst io.Writer, replacer func(string) string) (checksum string, err error)
- func Generate(lockfile *config.Lockfile, scaffoldSource, outdir string) error
- func LiteralMatchReplacer(manifest *config.Manifest, vars map[string]string) func(string) string
- func LoadVarsInteractive(manifestVars map[string]*config.ManifestVar, lockfileVars map[string]string) (map[string]string, error)
- func RegexpLoopReplacer(manifest *config.Manifest, vars map[string]string) (func(string) string, error)
- func RegexpReplacer(manifest *config.Manifest, vars map[string]string) (func(string) string, error)
- func Remove(lockfile *config.Lockfile, scaffoldSource, outdir string) error
- func Upgrade(lockfile *config.Lockfile, scaffoldSource, outdir string) error
- type Scaffold
- type ScaffoldFile
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IgnoreFiles = set.New(".git")
)
Functions ¶
func ApplyTemplate ¶
func LiteralMatchReplacer ¶
LiteralMatchReplacer returns a function that will perform template replacement on a string or substring, using the configured delimiters and vars. This function supports zero or one modifiers per variable.
func LoadVarsInteractive ¶
func LoadVarsInteractive(manifestVars map[string]*config.ManifestVar, lockfileVars map[string]string) (map[string]string, error)
LoadVarsInteractive loads vars from lockfile, and prompts the user for any vars that are in the manifest but not in the lockfile.
func RegexpLoopReplacer ¶
func RegexpReplacer ¶
Types ¶
type Scaffold ¶
type Scaffold struct { Files []ScaffoldFile Manifest *config.Manifest Vars map[string]string // contains filtered or unexported fields }
func LoadFromDir ¶
func LoadFromURL ¶
func LoadScaffold ¶
type ScaffoldFile ¶
Click to show internal directories.
Click to hide internal directories.