mirror of
https://github.com/Jguer/yay.git
synced 2024-11-09 02:17:21 +01:00
18 lines
273 B
Go
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
|
|
}
|