Skip to content

Commit 11ed4e6

Browse files
committed
feat: add IsTapPackage helper for tap detection
1 parent 66df5d8 commit 11ed4e6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

internal/config/packages.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,13 @@ func IsCaskPackage(name string) bool {
8080
}
8181
return false
8282
}
83+
84+
func IsTapPackage(name string) bool {
85+
parts := 0
86+
for _, c := range name {
87+
if c == '/' {
88+
parts++
89+
}
90+
}
91+
return parts == 2
92+
}

0 commit comments

Comments
 (0)