runtime

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogInheritedFields

func LogInheritedFields(jobName string, inherited InheritedFields)

Types

type CLIInput

type CLIInput struct {
	Use           string
	Jobs          map[string]job.Job
	WatchMappings []watch.WatchMapping
	ConfigFiles   []string
}

type InheritedFields

type InheritedFields struct {
	Cmd             bool
	Env             bool
	Framework       bool
	TargetPattern   bool
	ExcludePatterns bool
}

InheritedFields indicates which fields were inherited from a built-in default.

type ResolveReason

type ResolveReason string
const (
	ResolveReasonExplicitName            ResolveReason = "explicit_name"
	ResolveReasonExplicitPatterns        ResolveReason = "explicit_patterns"
	ResolveReasonAutodetect              ResolveReason = "autodetect"
	ResolveReasonAutodetectAfterPatterns ResolveReason = "autodetect_after_patterns"
)

type RuntimeConfig

type RuntimeConfig struct {
	Use       string
	Jobs      map[string]job.Job
	Watches   []watch.WatchMapping
	Inherited map[string]InheritedFields
	Sources   []string
}

func BuildRuntimeConfig

func BuildRuntimeConfig(cli *CLIInput) (*RuntimeConfig, error)

type SelectedJob

type SelectedJob struct {
	Name      string
	Job       job.Job
	Reason    ResolveReason
	Inherited InheritedFields
}

func SelectJobFromRuntimeConfig

func SelectJobFromRuntimeConfig(rc *RuntimeConfig, patterns []string) (*SelectedJob, error)

Jump to

Keyboard shortcuts

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