Documentation ¶
Index ¶
- func GazelleWalkDir(args language.GenerateArgs, recurse bool, walkFunc GazelleWalkFunc) error
- func IsBazelPackage(dir string) bool
- func IsFileExcluded(rel, fileRelPath string, excludes []string) bool
- func ToDefaultTargetName(args language.GenerateArgs, defaultRootName string) string
- type GazelleWalkFunc
- type LabelSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GazelleWalkDir ¶
func GazelleWalkDir(args language.GenerateArgs, recurse bool, walkFunc GazelleWalkFunc) error
Walk the directory of the language.GenerateArgs, optionally recursing into subdirectories unlike the files provided in GenerateArgs.RegularFiles.
func IsBazelPackage ¶
IsBazelPackage determines if the directory is a Bazel package by probing for the existence of a known BUILD file name.
func IsFileExcluded ¶
func ToDefaultTargetName ¶
func ToDefaultTargetName(args language.GenerateArgs, defaultRootName string) string
Return the default target name for the given language.GenerateArgs. The default target name of a BUILD is the directory name. WHen within the repository root which may be outside of version control the default target name is the repository name.
Types ¶
type GazelleWalkFunc ¶
type LabelSet ¶
type LabelSet struct {
// contains filtered or unexported fields
}
A basic set of label.Labels with logging of set modifications.
func NewLabelSet ¶
Click to show internal directories.
Click to hide internal directories.