Add current sticker command

This commit is contained in:
Dan Jones 2023-08-27 23:43:48 -05:00
commit b2dd7b321a
3 changed files with 66 additions and 10 deletions

View file

@ -15,12 +15,14 @@ var stickerCmd = &cobra.Command{
Use: "sticker [sticker-name]",
Args: cobra.MinimumNArgs(1),
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
/*
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
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.`,
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) {
name := args[0]
songs, _ := mpd.StickerFind(name)