cli

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StrPtr

func StrPtr() *string

func ValidateCommonFlags

func ValidateCommonFlags() (targetPattern string, err error)

ValidateCommonFlags ensures that the argument follow the right format

Types

type CommonConfig

type CommonConfig struct {
	Context        *pkg.Context
	RevisionBefore pkg.LabelledGitRev
	Targets        pkg.TargetsList
}

func ResolveCommonConfig

func ResolveCommonConfig(commonFlags *CommonFlags, beforeRevStr string) (*CommonConfig, error)

type CommonFlags

type CommonFlags struct {
	WorkingDirectory                       *string
	BazelPath                              *string
	BazelStartupOpts                       *MultipleStrings
	BazelOpts                              *MultipleStrings
	EnforceCleanRepo                       EnforceCleanFlag
	DeleteCachedWorktree                   bool
	IgnoredFiles                           *IgnoreFileFlag
	BeforeQueryErrorBehavior               *string
	TargetsFlag                            *string
	AnalysisCacheClearStrategy             *string
	CompareQueriesAroundAnalysisCacheClear bool
	FilterIncompatibleTargets              bool
}

func RegisterCommonFlags

func RegisterCommonFlags() *CommonFlags

type EnforceCleanFlag

type EnforceCleanFlag int
const (
	EnforceClean EnforceCleanFlag = iota
	AllowIgnored
	AllowDirty
)

func (*EnforceCleanFlag) Set

func (e *EnforceCleanFlag) Set(value string) error

func (EnforceCleanFlag) String

func (e EnforceCleanFlag) String() string

type IgnoreFileFlag

type IgnoreFileFlag []common.RelPath

func (*IgnoreFileFlag) Set

func (i *IgnoreFileFlag) Set(value string) error

func (*IgnoreFileFlag) String

func (i *IgnoreFileFlag) String() string

type MultipleStrings added in v0.8.0

type MultipleStrings []string

func (*MultipleStrings) Set added in v0.8.0

func (s *MultipleStrings) Set(value string) error

func (*MultipleStrings) String added in v0.8.0

func (s *MultipleStrings) String() string

Jump to

Keyboard shortcuts

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