✨ Find method
This commit is contained in:
parent
16933ce0fa
commit
942d419bf6
5 changed files with 26 additions and 6 deletions
|
|
@ -21,10 +21,9 @@ Cobra is a CLI library for Go that empowers applications.
|
|||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
conn, _ := mpd.GetConn()
|
||||
ret, _ := conn.Search(args...)
|
||||
for _, attr := range ret {
|
||||
for k, v := range attr {
|
||||
ret, _ := mpd.Find(args...)
|
||||
for _, song := range ret {
|
||||
for k, v := range song.Attrs {
|
||||
fmt.Println(k, ":", v)
|
||||
}
|
||||
fmt.Println("-------")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue