diff --git a/cmd/root.go b/cmd/root.go index 65ff30d..8005ef2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -10,15 +10,15 @@ var ( rootCmd = &cobra.Command{ Use: "snoopy", Short: "snoop around people on the internet", - Long: ` + Long: ` Track other people on the internet and gather data on them. Automate opsec and osint with snoopy. `, } ) -func Execute() { - err := rootCmd.Execute() +func Execute() { + err := rootCmd.Execute() if err != nil { os.Exit(1) } diff --git a/cmd/trace.go b/cmd/trace.go index 8b27be2..625f396 100644 --- a/cmd/trace.go +++ b/cmd/trace.go @@ -17,7 +17,7 @@ public IP address. `, Run: func(cmd *cobra.Command, args []string) { - ipAddress := cmd.Flag("ip").Value.String() + ipAddress := cmd.Flag("ip").Value.String() if ipAddress == "" { @@ -49,8 +49,6 @@ public IP address. } }, - - } func init() { diff --git a/helper/ip.go b/helper/ip.go index 2c9be34..51a8255 100644 --- a/helper/ip.go +++ b/helper/ip.go @@ -40,7 +40,6 @@ type IpApiData struct { RegionName string `json:"regionName"` } - func GetPublicIP() (IP, error) { res, err := http.Get("http://wtfismyip.com/json") diff --git a/main.go b/main.go index a79e155..c7f1648 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,6 @@ package main import "github.com/thechadgod/snoopy/cmd" - func main() { cmd.Execute() }