hedgedoc / cli

A tiny CLI for HedgeDoc
GNU Affero General Public License v3.0
150 stars 37 forks source link

Add backup cli command, exporting all notes for current user #50

Closed peschmae closed 2 years ago

peschmae commented 2 years ago

The hedgedoc API has an endpoint to export a ZIP archive of all notes for the user.

This pull request adds acess to that API endpoint as 'backup' command, since the export command is already used to export a single note.

Since this CLI only interacts with the API, I'd argue that 'backup' is fine as a name, and wont be confused with a proper backup command that would create a database dump & archive with all the uploads

ErikMichelson commented 2 years ago

Hey @peschmae, thanks for your contribution!

In order to get this merged, we need you to sign-off your commits according to the contribution guidelines for the HedgeDoc organization. You can find more information on this here: https://github.com/hedgedoc/hedgedoc/blob/develop/CONTRIBUTING.md#certificate-of-origin

peschmae commented 2 years ago

Hi @ErikMichelson Thanks for the feedback. I've amended the commit and force pushed, hope it's fine like that.