1
0
mirror of https://github.com/bestnite/sub2sing-box.git synced 2026-06-08 16:04:43 +00:00
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
+1 -12
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)
}
}