✨ PrintAll method
This commit is contained in:
parent
942d419bf6
commit
440b927141
3 changed files with 19 additions and 13 deletions
|
|
@ -4,8 +4,6 @@ Copyright © 2023 NAME HERE <EMAIL ADDRESS>
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"codeberg.org/danjones000/mpc-extra/mpd"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
@ -22,13 +20,7 @@ This application is a tool to generate the needed files
|
|||
to quickly create a Cobra application.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
curr, _ := mpd.GetCurrent()
|
||||
for k, v := range curr.Attrs {
|
||||
fmt.Println(k, ":", v)
|
||||
}
|
||||
sticks, _ := curr.GetStickers()
|
||||
for _, v := range sticks {
|
||||
fmt.Println(v.Name, "*:", v.Value)
|
||||
}
|
||||
curr.PrintAll(true)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue