gospt/cmd/refillradio.go

20 lines
432 B
Go
Raw Permalink Normal View History

2023-01-09 23:52:21 +00:00
package cmd
import (
"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-19 07:13:40 +00:00
RunE: func(cmd *cobra.Command, args []string) error {
2023-02-17 22:08:25 +00:00
return commands.RefillRadio(ctx)
2023-01-09 23:52:21 +00:00
},
}