run

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProjectRunner

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

func NewCustomDefaultProjectRunner

func NewCustomDefaultProjectRunner(
	ctx RunContext,
	exec executor.Executor,
	logger *slog.Logger,
	project *project.Project,
	store secrets.SecretStore,
) DefaultProjectRunner

func NewDefaultProjectRunner

func NewDefaultProjectRunner(
	ctx RunContext,
	project *project.Project,
) DefaultProjectRunner

func (*DefaultProjectRunner) RunTarget

func (p *DefaultProjectRunner) RunTarget(
	target string,
	opts ...earthly.EarthlyExecutorOption,
) error

RunTarget runs the given Earthly target.

type ProjectRunner

type ProjectRunner interface {
	RunTarget(target string, opts ...earthly.EarthlyExecutorOption) error
}

type RunContext

type RunContext struct {
	// CI is true if the run is happening in a CI environment.
	CI bool

	// FSWalker is the walker to use for walking the filesystem.
	FSWalker walker.FSWalker

	// Local is true if the run is happening in a local environment.
	Local bool

	// Logger is the logger to use for logging.
	Logger *slog.Logger

	// ProjectLoader is the project loader to use for loading projects.
	ProjectLoader project.ProjectLoader

	// SecretStore is the secret store to use for fetching secrets.
	SecretStore secrets.SecretStore

	// Verbose is the verbosity level of the run.
	Verbose int
}

RunContext represents the context in which a CLI run is happening.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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