gospt/cmd/refillradio.go

20 lines
432 B
Go
Raw Normal View History

2023-01-09 15:52:21 -08:00
package cmd
import (
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(refillRadioCmd)
}
var refillRadioCmd = &cobra.Command{
2023-01-13 23:06:43 -08:00
Use: "refillradio",
Aliases: []string{"rr"},
Short: "Refills the radio",
Long: `Deletes all songs up to your position in the radio and adds that many songs to the end of the radio`,
2023-01-18 23:13:40 -08:00
RunE: func(cmd *cobra.Command, args []string) error {
2023-02-17 16:08:25 -06:00
return commands.RefillRadio(ctx)
2023-01-09 15:52:21 -08:00
},
}