Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCommonFlags ¶
ValidateCommonFlags ensures that the argument follow the right format
Types ¶
type CommonConfig ¶
type CommonConfig struct {
Context *pkg.Context
RevisionBefore pkg.LabelledGitRev
TargetPattern gazelle_label.Pattern
}
func ResolveCommonConfig ¶
func ResolveCommonConfig(commonFlags *CommonFlags, beforeRevStr string) (*CommonConfig, error)
type CommonFlags ¶
type CommonFlags struct {
WorkingDirectory *string
BazelPath *string
EnforceCleanRepo EnforceCleanFlag
DeleteCachedWorktree bool
IgnoredFiles *IgnoreFileFlag
TargetPatternFlag *string
}
func RegisterCommonFlags ¶
func RegisterCommonFlags() *CommonFlags
type EnforceCleanFlag ¶
type EnforceCleanFlag int
const ( EnforceClean EnforceCleanFlag = iota AllowIgnored AllowDirty )
func (*EnforceCleanFlag) Set ¶
func (i *EnforceCleanFlag) Set(value string) error
func (EnforceCleanFlag) String ¶
func (s EnforceCleanFlag) String() string
type IgnoreFileFlag ¶
func (*IgnoreFileFlag) Set ¶
func (i *IgnoreFileFlag) Set(value string) error
func (*IgnoreFileFlag) String ¶
func (i *IgnoreFileFlag) String() string
Click to show internal directories.
Click to hide internal directories.