This commit is contained in:
Urle Sistiana
2022-12-15 11:19:07 +08:00
commit fc8c213056
16 changed files with 1915 additions and 0 deletions

20
cmd/unpack/cmd.go Normal file
View File

@@ -0,0 +1,20 @@
package unpack
import (
"github.com/spf13/cobra"
"github.com/urlesistiana/v2dat/cmd"
)
var unpack = &cobra.Command{
Use: "unpack",
Short: "unpack geosite and geoip to text files.",
}
func init() {
unpack.AddCommand(newGeoSiteCmd(), newGeoIPCmd())
cmd.RootCmd.AddCommand(unpack)
}
func AddCommand(cmds ...*cobra.Command) {
unpack.AddCommand(cmds...)
}