Documentation ¶
Index ¶
- func AllSubprojectNames() (result []string)
- func ChangedSubprojectNames() (result []string)
- func Check(e error)
- func Contains(haystack []string, needle string) bool
- func DirectoryExists(dirName string) bool
- func GetAfterAll() (result []string)
- func GetAlways() (result []string)
- func GetBeforeAll() (result []string)
- func GetNever() (result []string)
- func IsDirectory(dirName string) bool
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSubprojectNames ¶
func AllSubprojectNames() (result []string)
AllSubprojectNames returns the names of all subprojects, irrespective of whether they contain changes.
func ChangedSubprojectNames ¶
func ChangedSubprojectNames() (result []string)
ChangedSubprojectNames returns the names of all subprojects that contain changes compared to the master branch.
func Check ¶
func Check(e error)
Check allows convenient checking of critical errors. When an error is given, it prints it and ends the application.
func DirectoryExists ¶
DirectoryExists returns whether the given directory exists in the current working directory
func GetAfterAll ¶
func GetAfterAll() (result []string)
GetAfterAll returns the "after-all" section of the configuration file
func GetAlways ¶
func GetAlways() (result []string)
GetAlways returns the "always" part of the configuration file
func GetBeforeAll ¶
func GetBeforeAll() (result []string)
GetBeforeAll returns the "before-all" part of the configuration file
func GetNever ¶
func GetNever() (result []string)
GetNever returns the "never" part of the configuration file
func IsDirectory ¶
IsDirectory returns whether the directory with the given name exists and is a directory.
Types ¶
type Runner ¶
Runner runs the given command in the given subproject(s).
func NewRunner ¶
NewRunner creates a new Runner instance. Use this convenience method if you have the command as a set of strings. If you have the commands as a single string, you can use the normal constructor.
func (*Runner) RunInSubproject ¶
RunInSubproject runs the command for this runner in the given subproject.