Skip to content

Commit

Permalink
Add permitted args for autocomplete purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdmuckle committed Jul 20, 2020
1 parent 1a75e00 commit 02f99ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ please see https://pkg.go.dev/github.com/zmb3/spotify?tab=doc#Client.Search`,
glog.Fatal(err)
}
},
ValidArgs: []string{"track", "album", "playlist"},
}

func fuzzySearchResults(results spotify.SearchResult, searchType string) spotify.URI {
Expand Down

0 comments on commit 02f99ee

Please sign in to comment.