2023-07-11 09:57:29 +02:00
|
|
|
/*
|
|
|
|
Copyright © 2023 Laura Kalb <dev@lauka.net>
|
|
|
|
The code of this project is available under the MIT license. See the LICENSE file for more info.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"codeberg.org/lauralani/humble-bot/app"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// queueCmd represents the queue command
|
|
|
|
var queueremoveCmd = &cobra.Command{
|
|
|
|
Use: "remove QUEUEID",
|
|
|
|
Short: "Delete single queue item",
|
|
|
|
Run: app.RunQueueRemove,
|
|
|
|
Args: cobra.ExactArgs(1),
|
|
|
|
Example: "humble-bot queue remove 25",
|
2023-07-11 12:42:28 +02:00
|
|
|
Aliases: []string{"delete"},
|
2023-07-11 09:57:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
queueCmd.AddCommand(queueremoveCmd)
|
|
|
|
}
|