runner

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package runner manages command-line execution

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTag

func RenderTag(cfg config.Config, t *commit.Tag, ver *commit.Version) (string, error)

Types

type CheckFailure added in v0.6.0

type CheckFailure struct {
	Failures []FailureEntry
}

func (CheckFailure) Error added in v0.6.0

func (cf CheckFailure) Error() string

func (CheckFailure) Is added in v0.6.0

func (cf CheckFailure) Is(other error) bool

func (CheckFailure) WriteFailure added in v0.6.0

func (cf CheckFailure) WriteFailure(w io.Writer) error

type FailureEntry added in v0.6.0

type FailureEntry struct {
	// contains filtered or unexported fields
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, vcs vcs.Interface) (*Runner, error)

func (*Runner) Analyze

func (r *Runner) Analyze(ctx context.Context, rc string) ([]*commit.Version, error)

func (*Runner) Check

func (r *Runner) Check(ctx context.Context, rc string) error

Check checks initial requirements for release, such as being on the right branch.

func (*Runner) CheckCommits added in v0.6.3

func (r *Runner) CheckCommits(ctx context.Context, commits []string) (commit.AnalyzedCommits, error)

func (*Runner) CheckCommitsFromGit added in v0.6.0

func (r *Runner) CheckCommitsFromGit(ctx context.Context, scope string) (commit.AnalyzedCommits, error)

CheckCommitsFromGit checks all commits since the last release.

func (*Runner) CheckReadCommit added in v0.6.3

func (r *Runner) CheckReadCommit(ctx context.Context, rdr io.Reader) (commit.AnalyzedCommits, error)

func (*Runner) CreateTags

func (r *Runner) CreateTags(ctx context.Context, versions []*commit.Version) error

func (*Runner) LatestRelease added in v0.6.2

func (r *Runner) LatestRelease(ctx context.Context, scope, rc string) (semver.Version, error)

func (*Runner) PushTags

func (r *Runner) PushTags(ctx context.Context) error

func (*Runner) Stats added in v0.6.0

func (r *Runner) Stats(ctx context.Context) (*Stats, error)

type Stats added in v0.6.0

type Stats struct {
	Commits int64
	Counts  map[string][]*statCount
}

func (*Stats) Add added in v0.6.0

func (s *Stats) Add(bucket, name string, n int64)

func (*Stats) TextSummary added in v0.6.0

func (s *Stats) TextSummary(w io.Writer, all bool) error

Jump to

Keyboard shortcuts

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