This commit is contained in:
zu1k 2020-07-17 13:49:11 +08:00
parent 28a2f0b077
commit 3554f025e9
3 changed files with 5 additions and 10 deletions

View File

@ -6,17 +6,16 @@ import (
"log"
"os"
"github.com/zu1k/nali/internal/ipdb"
"github.com/zu1k/nali/internal/app"
"github.com/zu1k/nali/internal/ipdb"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "nali",
Short: "",
Long: ``,
Short: "An offline tool for querying IP geographic information",
Long: `An offline tool for querying IP geographic information.`,
Args: cobra.MinimumNArgs(0),
Run: func(cmd *cobra.Command, args []string) {
app.InitIPDB(ipdb.GetIPDBType())

View File

@ -6,9 +6,8 @@ import (
"os"
"path/filepath"
"github.com/zu1k/nali/pkg/qqwry"
"github.com/zu1k/nali/constant"
"github.com/zu1k/nali/pkg/qqwry"
"github.com/spf13/cobra"
)

View File

@ -5,12 +5,9 @@ import (
"path/filepath"
"strings"
"github.com/zu1k/nali/internal/iptools"
"github.com/zu1k/nali/constant"
"github.com/zu1k/nali/internal/ipdb"
"github.com/zu1k/nali/internal/iptools"
geoip2 "github.com/zu1k/nali/pkg/geoip"
"github.com/zu1k/nali/pkg/qqwry"
)