removed debug statements
This commit is contained in:
parent
c7449c68b7
commit
9b4c20dd19
@ -100,14 +100,10 @@ func Cli() (message string, err error) {
|
|||||||
fmt.Println("ScrapeURL flag is set") // Debug print
|
fmt.Println("ScrapeURL flag is set") // Debug print
|
||||||
url := currentFlags.ScrapeURL
|
url := currentFlags.ScrapeURL
|
||||||
curlCommand := fmt.Sprintf("curl https://r.jina.ai/%s", url)
|
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 {
|
if err := exec.Command("sh", "-c", curlCommand).Run(); err != nil {
|
||||||
return "", fmt.Errorf("failed to run curl command: %w", err)
|
return "", fmt.Errorf("failed to run curl command: %w", err)
|
||||||
}
|
}
|
||||||
fmt.Println("Curl command executed successfully") // Debug print
|
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
} else {
|
|
||||||
fmt.Println("ScrapeURL flag is not set") // Debug print
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the interactive flag is set, run the interactive function
|
// if the interactive flag is set, run the interactive function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user