src

package
v0.0.0-...-e10d4e8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: ISC Imports: 10 Imported by: 0

Documentation

Index

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 Contains

func Contains(haystack []string, needle string) bool

Contains returns whether the given string slice contains the given string

func DirectoryExists

func DirectoryExists(dirName string) bool

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

func IsDirectory(dirName string) bool

IsDirectory returns whether the directory with the given name exists and is a directory.

Types

type Runner

type Runner struct {
	C       aurora.Aurora
	Command string
}

Runner runs the given command in the given subproject(s).

func NewRunner

func NewRunner(C aurora.Aurora, commands []string) *Runner

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

func (runner *Runner) RunInSubproject(subprojectName string) (err error)

RunInSubproject runs the command for this runner in the given subproject.

Jump to

Keyboard shortcuts

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