Documentation
¶
Index ¶
- func AppendFile(template, output string, data interface{}) error
- func Buffer(template string, data interface{}) (string, error)
- func Command(name string, cmd string, args ...string) error
- func CommandWithCwd(name, cwd, cmd string, args ...string) error
- func Directory(dir string) error
- func File(template, output string, data interface{}) error
- func FileDoesntExist(template, output string, data interface{}) error
- func GitInit() error
- func GoFmt() error
- func GoGet(pkg string) error
- func GoImports() error
- func GoModInit(repo string) error
- func GoModTidy() error
- func Modify(output string, data interface{}) error
- func NewExecuteCommandTask(name string, arg ...string) func() error
- func NewMakeDirectoryTask(dir string) func() error
- func PathExists(path string) bool
- func Prettier(dir string) error
- func RawFile(output string, data string) error
- func ReadYaml(path string, object interface{}) error
- func WriteYaml(path string, data interface{}) error
- type Runnable
- type Runner
- type Task
- type TaskFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶ added in v0.10.0
func CommandWithCwd ¶ added in v0.14.10
func FileDoesntExist ¶ added in v0.10.0
func NewExecuteCommandTask ¶
NewExecuteCommandTask is a convenience method for creating a task that executes a command
func NewMakeDirectoryTask ¶
NewMakeDirectoryTask is a convenience method for creating a task that creates a directory if it doesn't exist
func PathExists ¶
PathExists returns true or false if the path exists
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner collects tasks to run
Click to show internal directories.
Click to hide internal directories.