Introducing a Go command-line tool for interacting with Micropub servers
I've recently been adding a bit more media to my site, whether that's for the featured image for a post, or for screenshots for posts themselves.
In each case, I've been needing to upload it via a form on my personal Micropub client, which is slower, requires using a browser, and is not easily automatable.
As I've been looking to learn a bit more Go recently, I thought this would be a good chance to play around with Cobra and Viper, two libraries that power great command-line interfaces like hugo
, glab
and gh
.
I've released this very early version on GitLab.
Currently, it supports uploading media to the media endpoint, but I'm looking to improve it over time, adding support for more content types, queries and operations.