10. Config file and environment variable loading #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Implement configuration loading from env vars and
~/.wkhtmltopdf.jsonconfig file.Tasks
~/.wkhtmltopdf.jsonif it existschrome_pathtimeoutdefault_paper_sizestrictWKHTMLTOPDF_CHROME_PATHWKHTMLTOPDF_TIMEOUTWKHTMLTOPDF_STRICTAcceptance Criteria
~/.wkhtmltopdf.jsonwith{"chrome_path": "/usr/bin/chromium"}sets Chrome pathWKHTMLTOPDF_TIMEOUT=120overrides config file timeout--timeout 30overrides both env var and config fileNotes
jsonandpathlibfrom stdlib~/.wkhtmltopdf.json(expand user home)