mirror of
https://github.com/iyear/tdl
synced 2025-01-09 04:17:35 +08:00
chore(dl): do not impl chat mode now
This commit is contained in:
parent
2aeb4afa29
commit
445d147663
@ -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 {
|
||||
|
||||
}
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user