Provide a CLI tool to publish on the Dolistore
rdoursenaud opened this issue · 0 comments
rdoursenaud commented
Rationale:
Publishing on the Dolistore can be quite time consuming and error-prone.
All the required informations can be provided by files (images, texts, metadata…).
Managing these in the repository makes sense and would allow using translation tools to manage the localization.
Here's a rundown of what I think is required to achieve this goal:
- Defining a common format.
As a basis, here's what I'm using at the moment:
https://github.com/GPCsolutions/dolibarr-module-template/tree/master/dev/dolistore
Nota: Markdown support besides HTML would be great! - Server side API
- Handle authentication (OAuth2? Prestashop? OpenSSH?)
- Receive files
- Publish
- The CLI script itself
Ideally written in PHP to allow easy hacking within the project.- Authentication
- File upload
- Publication
Another approach would be to provide a GIT service like the AUR.
This would not require yet another tool and handle authentication for us using SSH.
A server-side post-receive hook could handle the format verification and the publication.