Get Random Quote
Fetches a single random quote from the remote API by executing the Go script at scripts/get_random_quote/main.go.
Steps
- Run the script:
go run ./scripts/get_random_quote/main.go
- Return the stdout output exactly as printed, trimming surrounding whitespace.
- Expected format:
Quote text - Author
- Expected format:
Error Handling
- If stdout is empty and stderr has content, return a brief failure message and include the stderr text.
- Do not fabricate a quote if the script fails — surface the error instead.
Requirements
gotoolchain must be on PATH- Outbound network access is required to reach the quote API
Source: henomis/phero — distributed by TomeVault.