master
 1package get
 2
 3import (
 4	"github.com/kahnwong/swissknife/internal/get"
 5	"github.com/spf13/cobra"
 6)
 7
 8var getIPInfoCmd = &cobra.Command{
 9	Use:   "ipinfo [ip]",
10	Short: "Get detailed IP information (location, ISP, etc.)",
11	Args:  cobra.MaximumNArgs(1),
12	RunE: func(cmd *cobra.Command, args []string) error {
13		return get.IPInfo(args)
14	},
15}
16
17func init() {
18	Cmd.AddCommand(getIPInfoCmd)
19}