feat: add directory watching and auto-upload functionality (#219)

This commit is contained in:
Krau
2026-06-25 14:34:59 +08:00
committed by GitHub
parent 88b170acaa
commit 77ef3154cf
5 changed files with 644 additions and 1 deletions

View File

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