command

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHostsConfigured = errors.New("no hosts configured")
)

Functions

This section is empty.

Types

type Run added in v0.9.0

type Run struct {
	Cache        cache.Cache
	DryRun       bool
	Hosts        []host.Host
	Processor    processor.RepositoryTaskProcessor
	TaskRegistry *task.Registry
}

func (*Run) Run added in v0.9.0

func (r *Run) Run(repositoryNames, taskFiles []string) ([]RunResult, error)

type RunResult

type RunResult struct {
	Error          error
	RepositoryName string
	Result         processor.Result
	TaskName       string
}

func ExecuteRun

func ExecuteRun(opts options.Opts, repositoryNames, taskFiles []string) ([]RunResult, error)

type TryRunner

type TryRunner struct {
	ApplyActionsFunc func(actions []action.Action, ctx context.Context, dir string) error
	GitClient        git.GitClient
	Hosts            []host.Host
	Out              io.Writer
	Registry         *task.Registry
	RepositoryName   string
	TaskFile         string
	TaskName         string
}

func NewTryRunner

func NewTryRunner(opts options.Opts, dataDir string, repositoryName string, taskFile string, taskName string) (*TryRunner, error)

func (*TryRunner) Run

func (r *TryRunner) Run() error

Jump to

Keyboard shortcuts

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