Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct {
FS fs.UlspFS
OutputWriter io.Writer
WorkspaceRoot string
// Paths, relative to the workspace root, which will be checked.
// Once the first match is found, it will be used.
Paths []string
}
Params is the configuration for the provider.
type PresetPatternsProvider ¶
type PresetPatternsProvider interface {
GetPresetPatterns(ctx context.Context, getTargetsFunc func(ctx context.Context, patterns []string) ([]string, error)) ([]string, error)
}
PresetPatternsProvider provides a list of preset target patterns to the registry
func New ¶
func New(p Params) PresetPatternsProvider
New creates a new project view patterns provider.
type ProjectView ¶
ProjectView stores information in .bazelproject file.
func ParseProjectView ¶
func ParseProjectView(projectFile io.Reader) (project ProjectView, err error)
ParseProjectView parses a .bazelproject file and its imports with depth-first order. It assumes that the file is a YAML except the imports. More information: https://ij.bazel.build/docs/project-views.html This function parses the file with best effort, so it may return partially valid content with errors indicating the issues it runs into.
Click to show internal directories.
Click to hide internal directories.