Skip to content

Commit 14fc1b8

Browse files
authored
Ensure tomeignore works during completions (#4)
1 parent 2f85cd5 commit 14fc1b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/lib.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ func ValidArgsFunctionForScripts(cmd *cobra.Command, args []string, toComplete s
152152

153153
var executableOrDirectories []string
154154
for _, entry := range toCompleteEntries {
155+
if ignorePatterns.MatchesPath(entry) {
156+
continue
157+
}
155158
if strings.HasSuffix(entry, "/") {
156159
executableOrDirectories = append(executableOrDirectories, entry)
157160
} else {

0 commit comments

Comments
 (0)