Documentation ¶
Index ¶
- type Task
- func GitCheckout(ref string, keep bool) Task
- func GitClone() Task
- func GitCommit(message string, globs ...string) Task
- func GitInit() Task
- func GitNewRef(name string) Task
- func GitPull(remoteName string) Task
- func GitRemote(remoteName string) Task
- func NewFile(path string, content []byte) Task
- func NewFolder() Task
- func Sequence(tasks ...Task) Task
- func SetupRemote() Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
A Task is responsible for performing a specific task on a repository or scratchpad.
func GitCheckout ¶ added in v1.5.1
GitCheckout is responsible for checking out a specific branch.
func GitClone ¶
func GitClone() Task
GitClone is responsible for running the equivalent of a `git clone` for a repository.
func GitCommit ¶ added in v1.5.1
GitCommit is responsible for committing changes within the working directory.
func GitInit ¶
func GitInit() Task
GitInit is responsible for running the equivalent of a `git init` operation for a repository.
func GitNewRef ¶ added in v1.5.4
GitNewRef is responsible for creating a new Git reference which points at HEAD.
func GitPull ¶
GitPull is responsible for running the equivalent of a `git pull` operation for the default remote (origin).
func GitRemote ¶
GitRemote is responsible for running the equivalent of a `git remote add` or `git remote set-url` for a repository.
func NewFolder ¶
func NewFolder() Task
NewFolder is responsible for ensuring that a repository has a valid folder created for it.
func Sequence ¶
Sequence will run a series of tasks in sequence. It will stop execution of the sequence on the first error.
func SetupRemote ¶
func SetupRemote() Task
SetupRemote is responsible for creating the upstream repository on whichever service hosts the repo.