This commit is contained in:
2026-05-30 09:24:42 +08:00
parent 6c3de4b2ef
commit e054f458bb
17 changed files with 533 additions and 78 deletions
+6
View File
@@ -8,6 +8,7 @@ package cmd
import (
"axenov/iptv-checker/app"
"context"
"os"
"github.com/spf13/cobra"
@@ -33,6 +34,11 @@ func Execute() {
}
}
// ExecuteContext runs the root command with the given context.
func ExecuteContext(ctx context.Context) error {
return rootCmd.ExecuteContext(ctx)
}
func init() {
rootCmd.PersistentFlags().BoolVarP(&app.Args.Verbose, "verbose", "v", false, "enable additional output")
}