builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidGitRange = errors.New("invalid git range")
View Source
var (
	ErrInvalidOutputFormat = errors.New("invalid output format")
)
View Source
var ErrNoChangesFound = errors.New("no changes were found")

Functions

This section is empty.

Types

type Action

type Action interface {
	Precheck(ctx context.Context) error
	Do(ctx context.Context) (context.Context, error)
}

type Builder

type Builder interface {
	Run() ([]string, error)
}

Builder is our primary interface or interacting with artifact. It determines which actions to load and how to execute them, passing a context between all actions as they execute.

func NewBuilderFromCLI

func NewBuilderFromCLI(c *cli.Context) Builder

NewBuilderFromCLI creates a builder from a CLI's context.

type ChangesetIdentification

type ChangesetIdentification struct {
	GitRangeStart string
	GitRangeEnd   string

	WorkingDirectory string
}

func (*ChangesetIdentification) Do

func (*ChangesetIdentification) Precheck

type EntrypointDependencyIdentification

type EntrypointDependencyIdentification struct {
	RepoBasename     string
	WorkingDirectory string
}

func (*EntrypointDependencyIdentification) Do

func (*EntrypointDependencyIdentification) Precheck

type EntrypointIdentification

type EntrypointIdentification struct {
	Prefix           string
	SkipNested       bool
	WorkingDirectory string
}

func (*EntrypointIdentification) Do

func (*EntrypointIdentification) Precheck

func (c *EntrypointIdentification) Precheck(ctx context.Context) error

type ModifiedDependencies

type ModifiedDependencies struct{}

func (ModifiedDependencies) Do

func (ModifiedDependencies) Precheck

func (m ModifiedDependencies) Precheck(_ context.Context) error

type OutputDependencies

type OutputDependencies struct {
	Format string
}

func (*OutputDependencies) Do

func (*OutputDependencies) Precheck

func (m *OutputDependencies) Precheck(_ context.Context) error

type RebuildTargets added in v0.2.0

type RebuildTargets struct {
	IsDryRun         bool
	BuildCommand     string
	WorkingDirectory string
}

func (*RebuildTargets) Do added in v0.2.0

func (*RebuildTargets) Precheck added in v0.2.0

func (r *RebuildTargets) Precheck(_ context.Context) error

Jump to

Keyboard shortcuts

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