feat: refactor upload command and implement progress tracking

This commit is contained in:
krau
2025-12-19 14:20:00 +08:00
parent 3f9c3f2a73
commit 29d523bd4f
7 changed files with 341 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/krau/SaveAny-Bot/cmd/upload"
"github.com/krau/SaveAny-Bot/config"
"github.com/spf13/cobra"
)
@@ -16,6 +17,7 @@ var rootCmd = &cobra.Command{
func init() {
config.RegisterFlags(rootCmd)
upload.Register(rootCmd)
}
func Execute(ctx context.Context) {