initialize

package
v0.0.0-...-303912c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2016 License: GPL-3.0 Imports: 13 Imported by: 0

README

Initialize

The init library container all of the functionality for the init command, used to create project configurations based on patterns or remote demo configurations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init_Generate

func Init_Generate(handler string, path string, skip []string, sizeLimit int64, output io.Writer) bool

Types

type GenerateIterator

type GenerateIterator struct {
	// contains filtered or unexported fields
}

func (*GenerateIterator) Generate

func (iterator *GenerateIterator) Generate(path string) bool

type Generator

type Generator interface {
	// contains filtered or unexported methods
}

type InitTask

type InitTask interface {
	RunTask() 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

func (*InitTaskFileBase) MakeDir

func (task *InitTaskFileBase) MakeDir(makePath string, pathIsFile bool) bool

func (*InitTaskFileBase) MakeFile

func (task *InitTaskFileBase) MakeFile(destinationPath string, contents string) bool

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) AddError

func (tasks *InitTasks) AddError(error string)

func (*InitTasks) AddFile

func (tasks *InitTasks) AddFile(path string, contents string)

func (*InitTasks) AddFileCopy

func (tasks *InitTasks) AddFileCopy(path string, source string)

func (*InitTasks) AddFileStringReplace

func (tasks *InitTasks) AddFileStringReplace(path string, oldString string, newString string, replaceCount int)

func (*InitTasks) AddGitClone

func (tasks *InitTasks) AddGitClone(path string, url string)

func (*InitTasks) AddMessage

func (tasks *InitTasks) AddMessage(message string)

func (*InitTasks) AddRemoteFile

func (tasks *InitTasks) AddRemoteFile(path string, url string)

func (*InitTasks) AddTask

func (tasks *InitTasks) AddTask(task InitTask)

func (*InitTasks) AddTasksFromYaml

func (tasks *InitTasks) AddTasksFromYaml(yamlSource []byte) error

func (*InitTasks) Init

func (tasks *InitTasks) Init(root string) bool

func (*InitTasks) Init_Default_Bare

func (tasks *InitTasks) Init_Default_Bare() bool

func (*InitTasks) Init_Default_Run

func (tasks *InitTasks) Init_Default_Run(source string) bool

func (*InitTasks) Init_Git_Run

func (tasks *InitTasks) Init_Git_Run(source string) bool

func (*InitTasks) Init_Yaml_Run

func (tasks *InitTasks) Init_Yaml_Run(path string) bool

Get tasks from remote YAML corresponding to a remote yaml file

func (*InitTasks) RunTasks

func (tasks *InitTasks) RunTasks()

type TaskAdder

type TaskAdder interface {
	AddTask(tasks *InitTasks)
}

type TestInitGenerator

type TestInitGenerator struct {
	// contains filtered or unexported fields
}

type YMLInitGenerator

type YMLInitGenerator struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL