olcli
olcli copied to clipboard
[Feature] timeout for pull-project
the pull-project command executes
return this.downloadBuffer(this.downloadUrl(projectId));
since downloadBuffer doesn't accept set a timeout parameter, the underlying http function defaults to 10000 ms, which is too short for my large project.
it should accept a timeout parameter so that pull project can set a timeout. and so on, and so forth, until finally it reads from somewhere configurable, like a command line option.
Fixed in v0.6.0! You can now set a custom timeout via:
--timeout <ms>global flagOVERLEAF_TIMEOUTenvironment variableolcli config set-timeout <ms>(persisted)
Downloads (pull, pdf, zip, output) all respect the configured timeout. Thank you for the issue and the PR - your implementation was the basis for this.
Released in v0.6.0.