Cesura / pastey

A minimal, self-hosted paste platform
https://pastey.link/
BSD 3-Clause "New" or "Revised" License
106 stars 12 forks source link

new, improved pastey cli command #12

Closed srgvg closed 2 years ago

srgvg commented 3 years ago

As discussed in #9 I used the updated /paste endpoint, with the additional cli option.

I however suspect, the /raw endpoint is part of the {{ endpoint }} templating? It might perhaps be better to leave that specific endpoint in the script, having only the base url behing the endpoint variable, which shows it more explicitly?

I think I tested most paths, but wouldn';t be suprised if you'd find some bugs. Let me know what you thinik,.

Closes #9

stvhay commented 2 years ago

I am not sure why, but pastes were showing up empty when I tried this improved script.

stvhay commented 2 years ago

I fixed the script here

https://github.com/stvhay/pastey/commit/755f47053bbf1230d847c6aadea91e46aec1b59e

Cesura commented 2 years ago

It's long overdue but thank you for contributing this. I'll merge it right now, to be included in version 0.5 (as well as with @stvhay's fix to use the correct endpoint).