wip2
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user