1
0
mirror of https://github.com/zu1k/nali.git synced 2025-02-02 10:22:41 +08:00
nali/cmd/update.go

23 lines
381 B
Go
Raw Normal View History

2020-07-17 12:12:04 +08:00
package cmd
import (
"github.com/zu1k/nali/internal/db"
2020-07-17 12:12:04 +08:00
2021-08-03 07:54:35 +08:00
"github.com/spf13/cobra"
2020-07-17 12:12:04 +08:00
)
// updateCmd represents the update command
var updateCmd = &cobra.Command{
Use: "update",
Short: "update chunzhen ip database",
Long: `update chunzhen ip database`,
Run: func(cmd *cobra.Command, args []string) {
db.UpdateAllDB()
2020-07-17 12:12:04 +08:00
},
}
func init() {
rootCmd.AddCommand(updateCmd)
}