nali/cmd/parse.go
2020-07-17 09:43:48 +08:00

22 lines
355 B
Go

package cmd
import (
"github.com/zu1k/nali/internal/app"
"github.com/spf13/cobra"
)
var parseCmd = &cobra.Command{
Use: "parse",
Short: "Query IP information",
Long: `Query IP information.`,
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
app.ParseIPs(args)
},
}
func init() {
rootCmd.AddCommand(parseCmd)
}