Documentation
¶
Overview ¶
Package workflowfile finds the files a workflow is written in and reads them, as one text, in the order they are given: a later file overrides what an earlier one wrote.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Paths ¶
Paths resolves filePath, paths separated by commas, into the YAML (.yml and .yaml) files it names. A path is a file, a directory, whose YAML files are taken, or a glob. A file named on its own that is not YAML is refused, and one a directory or a glob finds is left out, as is a directory named as a YAML file.
Types ¶
type Redefinition ¶
Redefinition is a file that writes jobs at the top after an earlier file did. The files are read as one text, so its jobs replace the earlier ones, which do not run.
func RedefinedJobs ¶
func RedefinedJobs(files []string, data [][]byte) []Redefinition
RedefinedJobs returns each of files, whose contents are data, that writes jobs at the top after an earlier file did, with the one it replaces. Only jobs is told of: a file that replaces vars, say, is how a workflow is run in other environments.
func (Redefinition) Message ¶
func (r Redefinition) Message() string
Message tells what the redefinition does, without where it is.
func (Redefinition) String ¶
func (r Redefinition) String() string
String returns the redefinition as a warning on the line of File.