Files
yutu/cmd/caption/delete.go
T

30 lines
757 B
Go

package caption
import (
"github.com/eat-pray-ai/yutu/pkg/yutuber/caption"
"github.com/spf13/cobra"
)
var deleteCmd = &cobra.Command{
Use: "delete",
Short: "Delete caption",
Long: "Delete caption of a video",
Run: func(cmd *cobra.Command, args []string) {
c := caption.NewCation(
caption.WithID(id),
caption.WithOnBehalfOf(onBehalfOf),
caption.WithOnBehalfOfContentOwner(onBehalfOfContentOwner),
caption.WithService(nil),
)
c.Delete()
},
}
func init() {
captionCmd.AddCommand(deleteCmd)
deleteCmd.Flags().StringVarP(&id, "id", "i", "", "ID of the caption")
deleteCmd.Flags().StringVarP(&onBehalfOf, "onBehalfOf", "b", "", "")
deleteCmd.Flags().StringVarP(&onBehalfOfContentOwner, "onBehalfOfContentOwner", "B", "", "")
}