From adf3c2d3005b4dddcea32486ddd1ed58d7ab75b3 Mon Sep 17 00:00:00 2001 From: s Date: Thu, 6 Nov 2025 21:06:00 -0500 Subject: refactor: replace single map flag with separate google and osm options for bssid lookup --- cmd/osint.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cmd/osint.go') diff --git a/cmd/osint.go b/cmd/osint.go index 4f459ad..13c3c6e 100644 --- a/cmd/osint.go +++ b/cmd/osint.go @@ -1,11 +1,11 @@ package cmd import ( + "encoding/json" + "fmt" "git.db.org.ai/dborg/internal/client" "git.db.org.ai/dborg/internal/config" "git.db.org.ai/dborg/internal/models" - "encoding/json" - "fmt" "github.com/spf13/cobra" ) @@ -42,7 +42,8 @@ func init() { osintUsernameCmd.Flags().IntP("max_tasks", "m", 50, "Maximum concurrent tasks") osintBSSIDCmd.Flags().BoolP("all", "a", false, "Show all related results instead of exact match only") - osintBSSIDCmd.Flags().BoolP("map", "m", false, "Include Google Maps URL for the location") + osintBSSIDCmd.Flags().BoolP("google", "g", false, "Include Google Maps URL for the location") + osintBSSIDCmd.Flags().BoolP("osm", "o", false, "Include OpenStreetMap URL for the location") } func runOsintUsernameCheck(cmd *cobra.Command, args []string) error { @@ -86,7 +87,8 @@ func runOsintBSSIDLookup(cmd *cobra.Command, args []string) error { BSSID: args[0], } params.All, _ = cmd.Flags().GetBool("all") - params.Map, _ = cmd.Flags().GetBool("map") + params.Google, _ = cmd.Flags().GetBool("google") + params.OSM, _ = cmd.Flags().GetBool("osm") response, err := c.LookupBSSID(params) if err != nil { -- cgit v1.2.3