added back some debug statements

This commit is contained in:
Noam Siegel 2024-08-21 11:03:04 -07:00
parent 9b4c20dd19
commit b2be94f2f8

View File

@ -97,9 +97,9 @@ func Cli() (message string, err error) {
// Check for ScrapeURL flag first
if currentFlags.ScrapeURL != "" {
fmt.Println("ScrapeURL flag is set") // Debug print
url := currentFlags.ScrapeURL
curlCommand := fmt.Sprintf("curl https://r.jina.ai/%s", url)
fmt.Println("Executing command:", curlCommand) // Debug print
if err := exec.Command("sh", "-c", curlCommand).Run(); err != nil {
return "", fmt.Errorf("failed to run curl command: %w", err)
}