mirror of
https://github.com/nxtrace/nali
synced 2024-11-22 00:58:38 +00:00
22 lines
355 B
Go
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)
|
|
}
|