mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 22:04:41 -05:00
24 lines
316 B
Go
24 lines
316 B
Go
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)
|
|
}
|
|
}
|