yay/pkg/settings/parser/target_mode.go
2021-08-09 13:32:55 +02:00

18 lines
273 B
Go

package parser
type TargetMode int
const (
ModeAny TargetMode = iota
ModeAUR
ModeRepo
)
func (mode TargetMode) AtLeastAUR() bool {
return mode == ModeAny || mode == ModeAUR
}
func (mode TargetMode) AtLeastRepo() bool {
return mode == ModeAny || mode == ModeRepo
}