Since tolgee already works without the platform, can the cli be updated with options in that regard ?
Proposal
Add a --path argument to tolgee sync (similar to tolgee pull).
If --path is specified, the keys are synced with the files present inside. If --api-url or --api-key are also specified, the keys are synced remotely as well.
This option adds nothing new, in fact
tolgee sync --path $OUT_DIR ...
Should be nearly equivalent to
tolgee sync ...
tolgee pull --path $OUT_DIR ...
The big change is that sync would no longer require connection to the platform anymore, allowing (for example) for fully local projects. Providing a path should make api url / key and projectid optional.
Since tolgee already works without the platform, can the cli be updated with options in that regard ?
Proposal
Add a
--pathargument totolgee sync(similar totolgee pull).If
--pathis specified, the keys are synced with the files present inside. If--api-urlor--api-keyare also specified, the keys are synced remotely as well.This option adds nothing new, in fact
tolgee sync --path $OUT_DIR ...Should be nearly equivalent to
tolgee sync ... tolgee pull --path $OUT_DIR ...The big change is that sync would no longer require connection to the platform anymore, allowing (for example) for fully local projects. Providing a path should make api url / key and projectid optional.