Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptsFromArgs ¶
func OptsFromArgs(opts *Opts, args *turbostate.ParsedArgsFromRust) error
OptsFromArgs adds the settings relevant to this package to the given Opts
func ResolvePackages ¶
func ResolvePackages(opts *Opts, repoRoot turbopath.AbsoluteSystemPath, scm scm.SCM, ctx *context.Context, tui cli.Ui, logger hclog.Logger) (util.Set, bool, error)
ResolvePackages translates specified flags to a set of entry point packages for the selected tasks. Returns the selected packages and whether or not the selected packages represents a default "all packages".
Types ¶
type LegacyFilter ¶
type LegacyFilter struct {
// IncludeDependencies is whether to include pkg.dependencies in execution (defaults to false)
IncludeDependencies bool
// SkipDependents is whether to skip dependent impacted consumers in execution (defaults to false)
SkipDependents bool
// Entrypoints is a list of package entrypoints
Entrypoints []string
// Since is the git ref used to calculate changed packages
Since string
}
LegacyFilter holds the options in use before the filter syntax. They have their own rules for how they are compiled into filter expressions.
func (*LegacyFilter) AsFilterPatterns ¶
func (l *LegacyFilter) AsFilterPatterns() []string
AsFilterPatterns normalizes legacy selectors to filter syntax
type Opts ¶
type Opts struct {
LegacyFilter LegacyFilter
// IgnorePatterns is the list of globs of file paths to ignore from execution scope calculation
IgnorePatterns []string
// GlobalDepPatterns is a list of globs to global files whose contents will be included in the global hash calculation
GlobalDepPatterns []string
// Patterns are the filter patterns supplied to --filter on the commandline
FilterPatterns []string
PackageInferenceRoot turbopath.RelativeSystemPath
}
Opts holds the options for how to select the entrypoint packages for a turbo run
Click to show internal directories.
Click to hide internal directories.