Xion / gisht

Gists in the shell
GNU General Public License v2.0
27 stars 0 forks source link

Add glot.io #23

Closed Xion closed 6 years ago

Xion commented 6 years ago

HTML pages are in the format https://glot.io/snippets/$LETTERS but there doesn't seem to be a raw version at all. However, there seems to be a dedicated API that allows to fetch snippets by ID: https://github.com/prasmussen/glot-snippets/blob/master/api_docs/get_snippet.md.

The host also supports gists spanning multiple files (like GitHub) but maybe we can ignore it for now and just pick the first file. It would be best to fetch them all, though, place in a directory, and link the first file as gist's executable -- i.e. very much like GitHub, just a little smarter (files in GitHub gists aren't ordered, but here there seem to be).

Xion commented 6 years ago

So that's done, including fetching all the files.

One thing that still has to be investigated is updating gists (filed as #26).