This commit is contained in:
2024-03-11 17:31:29 +08:00
parent 80994b835c
commit 7c8cb5d7f6
12 changed files with 616 additions and 116 deletions

13
main.go
View File

@@ -3,21 +3,10 @@ package main
import (
"fmt"
"sub2sing-box/cmd"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "process",
Run: cmd.Url,
}
func init() {
rootCmd.Flags().StringSliceP("url", "u", []string{}, "URLs to process")
}
func main() {
if err := rootCmd.Execute(); err != nil {
if err := cmd.RootCmd.Execute(); err != nil {
fmt.Println(err)
}
}