mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-26 20:21:35 +08:00
22 lines
377 B
Go
22 lines
377 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "geoip",
|
|
Short: "geoip is a convenient tool to merge, convert and lookup IP & CIDR from various formats of geoip data.",
|
|
CompletionOptions: cobra.CompletionOptions{
|
|
HiddenDefaultCmd: true,
|
|
},
|
|
}
|
|
|
|
func main() {
|
|
if err := rootCmd.Execute(); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|