Mydayyy / pbcli

pbcli is a command line client which allows to upload and download pastes from privatebin directly from the command line.
MIT License
10 stars 4 forks source link

Use `PostPasteResponse` utility methods to improve json output #7

Closed nain-F49FF806 closed 2 months ago

nain-F49FF806 commented 3 months ago

Greetings,

Like discussed previously, this commit adds pasteurl, and deleteurl to the --json output.

Have added a baseurl field to PostPasteResponse. This makes it fully self-contained in regard to how we use it. Since pasteurl, and deleteurl can be constructed dynamically using above, I have left them out of the struct.

Best regards.