diff --git a/cmd/root.go b/cmd/root.go index fe4530a..51c8f25 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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()) diff --git a/cmd/update.go b/cmd/update.go index 504d824..c96648e 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -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" ) diff --git a/internal/app/parse.go b/internal/app/parse.go index 2376538..17cea7b 100644 --- a/internal/app/parse.go +++ b/internal/app/parse.go @@ -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" )