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.
Click to show internal directories.
Click to hide internal directories.