gazelle

package
v1.508.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func IsBazelPackage(dir string) bool

IsBazelPackage determines if the directory is a Bazel package by probing for the existence of a known BUILD file name.

func IsFileExcluded

func IsFileExcluded(rel, fileRelPath string, excludes []string) bool

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 GazelleWalkFunc func(path string) error

type LabelSet

type LabelSet struct {
	// contains filtered or unexported fields
}

A basic set of label.Labels with logging of set modifications.

func NewLabelSet

func NewLabelSet(from label.Label) *LabelSet

func (*LabelSet) Add

func (s *LabelSet) Add(l *label.Label)

func (*LabelSet) Empty

func (s *LabelSet) Empty() bool

func (*LabelSet) Labels

func (s *LabelSet) Labels() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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