added back some debug statements
This commit is contained in:
parent
9b4c20dd19
commit
b2be94f2f8
@ -97,9 +97,9 @@ func Cli() (message string, err error) {
|
|||||||
|
|
||||||
// Check for ScrapeURL flag first
|
// Check for ScrapeURL flag first
|
||||||
if currentFlags.ScrapeURL != "" {
|
if currentFlags.ScrapeURL != "" {
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user