Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct { VersionChanges []VersionChange FileChanges []FileChange RunShells []RunShell }
type Check ¶
type Check struct { File *File Name string // bump: <name> /<re>/ <pipeline> PipelineLineNr int CurrentREStr string CurrentRE *regexp.Regexp Pipeline pipeline.Pipeline PipelineDuration time.Duration // bump: <name> command ... CommandShells []CheckShell // bump: <name> after ... AfterShells []CheckShell // bump: <name> message <title> <url> Messages []CheckMessage // bump: <name> link <title> <url> Links []CheckLink Latest string Currents []Current }
Check is a bump config line
type CheckMessage ¶
type CheckShell ¶
type File ¶
type File struct { Name string Text []byte HasConfig bool HasCurrents bool HasNoVersions bool // for Bumpfile }
File is file with config or versions
type FileChange ¶
type FileSet ¶
type FileSet struct { Files []*File Filters []filter.NamedFilter Checks []*Check SkipCheckFn func(c *Check) bool }
FileSet is a set of File:s, filters and checks found in files
func NewBumpFileSet ¶
func NewBumpFileSet( os OS, filters []filter.NamedFilter, bumpfile string, filenames []string) (*FileSet, []error)
NewBumpFileSet creates a new BumpFileSet
func (*FileSet) CommandEnv ¶
func (*FileSet) SelectedChecks ¶
SelectedChecks returns selected checks based on SkipCheckFn
func (*FileSet) UpdateActions ¶
type OS ¶
type OS interface { Args() []string Getenv(name string) string Stdout() io.Writer Stderr() io.Writer WriteFile(filename string, data []byte) error ReadFile(filename string) ([]byte, error) Glob(pattern string) ([]string, error) Shell(cmd string, env []string) error Exec(args []string, env []string) error }
type VersionChange ¶
Click to show internal directories.
Click to hide internal directories.