Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogInheritedFields ¶
func LogInheritedFields(jobName string, inherited InheritedFields)
Types ¶
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)
Click to show internal directories.
Click to hide internal directories.