init
This commit is contained in:
20
cmd/unpack/cmd.go
Normal file
20
cmd/unpack/cmd.go
Normal 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...)
|
||||
}
|
||||
Reference in New Issue
Block a user