Skip to content

Commit

Permalink
Add debug tag completion
Browse files Browse the repository at this point in the history
  • Loading branch information
clementblaise committed Feb 10, 2021
1 parent 0a08ea0 commit 62664f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func tagsCompletion(toComplete string, path string, playbookPath string) ([]stri
}

remainder, current := extractMultipleCompletion(toComplete)
cobra.CompDebug(fmt.Sprintf("extract muitple: remainder:%s current:%s\n", remainder, current), true)

matches := utils.Filter(playbook.AllTags().List(), func(s string) bool {
return strings.HasPrefix(s, current)
Expand Down

0 comments on commit 62664f0

Please sign in to comment.