chore(dl): do not impl chat mode now

This commit is contained in:
iyear 2022-09-14 10:22:52 +08:00
parent 2aeb4afa29
commit 445d147663
2 changed files with 0 additions and 42 deletions

View file

@ -1,7 +0,0 @@
package dlchat
import "context"
func Run(ctx context.Context, ns, proxy string, partSize, threads, limit int, chat string, from, to int) error {
}

View file

@ -1,35 +0,0 @@
package dl
import (
"github.com/iyear/tdl/app/dl/dlchat"
"github.com/spf13/cobra"
)
var (
chat string
from, to int
)
var cmdChat = &cobra.Command{
Use: "chat",
Short: "Download in chat mode",
Example: "tdl dl chat ",
RunE: func(cmd *cobra.Command, args []string) error {
proxy, err := cmd.Flags().GetString("proxy")
if err != nil {
return err
}
ns, err := cmd.Flags().GetString("ns")
if err != nil {
return err
}
return dlchat.Run(cmd.Context(), ns, proxy, partSize, threads, limit)
},
}
func init() {
cmdChat.Flags().StringVarP(&chat, "chat", "c", "", "accp")
cmdChat.Flags().IntVar(&from, "from", 0)
}