Documentation ¶
Index ¶
- func Init_Generate(handler string, path string, skip []string, sizeLimit int64, output io.Writer) bool
- type GenerateIterator
- type Generator
- type InitTask
- type InitTaskError
- type InitTaskFile
- type InitTaskFileBase
- func (task *InitTaskFileBase) CopyFile(destinationPath string, sourcePath string) bool
- func (task *InitTaskFileBase) CopyFileRecursive(path string, source string) bool
- func (task *InitTaskFileBase) CopyRemoteFile(destinationPath string, sourcePath string) bool
- func (task *InitTaskFileBase) FileStringReplace(targetPath string, oldString string, newString string, replaceCount int) bool
- func (task *InitTaskFileBase) MakeDir(makePath string, pathIsFile bool) bool
- func (task *InitTaskFileBase) MakeFile(destinationPath string, contents string) bool
- type InitTaskFileCopy
- type InitTaskFileStringReplace
- type InitTaskGitClone
- type InitTaskMessage
- type InitTaskRemoteFile
- type InitTaskYaml_Base
- type InitTaskYaml_Error
- type InitTaskYaml_FileCopy
- type InitTaskYaml_FileMake
- type InitTaskYaml_FileStringReplace
- type InitTaskYaml_GitClone
- type InitTaskYaml_Message
- type InitTaskYaml_RemoteFileCopy
- type InitTasks
- func (tasks *InitTasks) AddError(error string)
- func (tasks *InitTasks) AddFile(path string, contents string)
- func (tasks *InitTasks) AddFileCopy(path string, source string)
- func (tasks *InitTasks) AddFileStringReplace(path string, oldString string, newString string, replaceCount int)
- func (tasks *InitTasks) AddGitClone(path string, url string)
- func (tasks *InitTasks) AddMessage(message string)
- func (tasks *InitTasks) AddRemoteFile(path string, url string)
- func (tasks *InitTasks) AddTask(task InitTask)
- func (tasks *InitTasks) AddTasksFromYaml(yamlSource []byte) error
- func (tasks *InitTasks) Init(root string) bool
- func (tasks *InitTasks) Init_Default_Bare() bool
- func (tasks *InitTasks) Init_Default_Run(source string) bool
- func (tasks *InitTasks) Init_Git_Run(source string) bool
- func (tasks *InitTasks) Init_Yaml_Run(path string) bool
- func (tasks *InitTasks) RunTasks()
- type TaskAdder
- type TestInitGenerator
- type YMLInitGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenerateIterator ¶
type GenerateIterator struct {
// contains filtered or unexported fields
}
func (*GenerateIterator) Generate ¶
func (iterator *GenerateIterator) Generate(path string) bool
type InitTaskError ¶
type InitTaskError struct {
// contains filtered or unexported fields
}
func (*InitTaskError) RunTask ¶
func (task *InitTaskError) RunTask() bool
type InitTaskFile ¶
type InitTaskFile struct { InitTaskFileBase // contains filtered or unexported fields }
func (*InitTaskFile) RunTask ¶
func (task *InitTaskFile) RunTask() bool
type InitTaskFileBase ¶
type InitTaskFileBase struct {
// contains filtered or unexported fields
}
func (*InitTaskFileBase) CopyFile ¶
func (task *InitTaskFileBase) CopyFile(destinationPath string, sourcePath string) bool
func (*InitTaskFileBase) CopyFileRecursive ¶
func (task *InitTaskFileBase) CopyFileRecursive(path string, source string) bool
func (*InitTaskFileBase) CopyRemoteFile ¶
func (task *InitTaskFileBase) CopyRemoteFile(destinationPath string, sourcePath string) bool
func (*InitTaskFileBase) FileStringReplace ¶
func (task *InitTaskFileBase) FileStringReplace(targetPath string, oldString string, newString string, replaceCount int) bool
perform a string replace on file contents
type InitTaskFileCopy ¶
type InitTaskFileCopy struct { InitTaskFileBase // contains filtered or unexported fields }
func (*InitTaskFileCopy) RunTask ¶
func (task *InitTaskFileCopy) RunTask() bool
type InitTaskFileStringReplace ¶
type InitTaskFileStringReplace struct { InitTaskFileBase // contains filtered or unexported fields }
func (*InitTaskFileStringReplace) RunTask ¶
func (task *InitTaskFileStringReplace) RunTask() bool
type InitTaskGitClone ¶
type InitTaskGitClone struct { InitTaskFileBase // contains filtered or unexported fields }
func (*InitTaskGitClone) RunTask ¶
func (task *InitTaskGitClone) RunTask() bool
type InitTaskMessage ¶
type InitTaskMessage struct {
// contains filtered or unexported fields
}
func (*InitTaskMessage) RunTask ¶
func (task *InitTaskMessage) RunTask() bool
type InitTaskRemoteFile ¶
type InitTaskRemoteFile struct { InitTaskFileBase // contains filtered or unexported fields }
func (*InitTaskRemoteFile) RunTask ¶
func (task *InitTaskRemoteFile) RunTask() bool
type InitTaskYaml_Base ¶
type InitTaskYaml_Base struct {
Type string `json:"Type" yaml:"Type"`
}
type InitTaskYaml_Error ¶
type InitTaskYaml_Error struct {
Error string `json:"Error" yaml:"Error"`
}
func (*InitTaskYaml_Error) AddTask ¶
func (task *InitTaskYaml_Error) AddTask(tasks *InitTasks)
type InitTaskYaml_FileCopy ¶
type InitTaskYaml_FileCopy struct { Path string `json:"Path" yaml:"Path"` Source string `json:"Source" yaml:"Source"` }
func (*InitTaskYaml_FileCopy) AddTask ¶
func (task *InitTaskYaml_FileCopy) AddTask(tasks *InitTasks)
type InitTaskYaml_FileMake ¶
type InitTaskYaml_FileMake struct { Path string `json:"Path" yaml:"Path"` Contents string `json:"Contents" yaml:"Contents"` }
func (*InitTaskYaml_FileMake) AddTask ¶
func (task *InitTaskYaml_FileMake) AddTask(tasks *InitTasks)
type InitTaskYaml_FileStringReplace ¶
type InitTaskYaml_FileStringReplace struct { Path string `json:"Path" yaml:"Path"` OldString string `json:"Old" yaml:"Source"` NewString string `json:"New" yaml:"Source"` ReplaceCount int `json:"Limit" yaml:"Source"` }
func (*InitTaskYaml_FileStringReplace) AddTask ¶
func (task *InitTaskYaml_FileStringReplace) AddTask(tasks *InitTasks)
type InitTaskYaml_GitClone ¶
type InitTaskYaml_GitClone struct { Path string `json:"Path" yaml:"Path"` Url string `json:"Url" yaml:"Url"` }
func (*InitTaskYaml_GitClone) AddTask ¶
func (task *InitTaskYaml_GitClone) AddTask(tasks *InitTasks)
type InitTaskYaml_Message ¶
type InitTaskYaml_Message struct {
Message string `json:"Message" yaml:"Message"`
}
func (*InitTaskYaml_Message) AddTask ¶
func (task *InitTaskYaml_Message) AddTask(tasks *InitTasks)
type InitTaskYaml_RemoteFileCopy ¶
type InitTaskYaml_RemoteFileCopy struct { Path string `json:"Path" yaml:"Path"` Url string `json:"Url" yaml:"Url"` }
func (*InitTaskYaml_RemoteFileCopy) AddTask ¶
func (task *InitTaskYaml_RemoteFileCopy) AddTask(tasks *InitTasks)
type InitTasks ¶
type InitTasks struct {
// contains filtered or unexported fields
}
func (*InitTasks) AddFileCopy ¶
func (*InitTasks) AddFileStringReplace ¶
func (*InitTasks) AddGitClone ¶
func (*InitTasks) AddMessage ¶
func (*InitTasks) AddRemoteFile ¶
func (*InitTasks) AddTasksFromYaml ¶
func (*InitTasks) Init_Default_Bare ¶
func (*InitTasks) Init_Default_Run ¶
func (*InitTasks) Init_Git_Run ¶
func (*InitTasks) Init_Yaml_Run ¶
Get tasks from remote YAML corresponding to a remote yaml file
type TestInitGenerator ¶
type TestInitGenerator struct {
// contains filtered or unexported fields
}
type YMLInitGenerator ¶
type YMLInitGenerator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.