2023-01-09 23:52:21 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2023-01-14 06:27:38 +00:00
|
|
|
"gospt/src/commands"
|
2023-01-09 23:52:21 +00:00
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rootCmd.AddCommand(refillRadioCmd)
|
|
|
|
}
|
|
|
|
|
|
|
|
var refillRadioCmd = &cobra.Command{
|
2023-01-14 07:06:43 +00: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-09 23:52:21 +00:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
commands.RefillRadio(ctx, client)
|
|
|
|
},
|
|
|
|
}
|