1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 14:24:42 -05:00
sub2sing-box/main.go

24 lines
316 B
Go
Raw Normal View History

2024-03-10 15:13:42 -04:00
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 {
fmt.Println(err)
}
}