mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-28 01:31:19 +00:00
update
This commit is contained in:
13
main.go
13
main.go
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user