I’ve been using imgup as a cli tool for a few days and it has worked pretty well. A few things bothered me about it:
- The OAuth situation was janky and not very portable. You had to have a .env file with very little help in the way of configuring it.
- Onboarding via oauth was non-existent.
- Configuring a target album involved fiddling around in the API or knowing exactly where to hover your mouse on the website.
So I spent some time just cleaving the CLI out of the core project and working on cleaning some of that up.
There’s a new repo, and a better onboarding deal:
- Install the gem (available from the release page)
- Run
imgup setup
- Go through a not-great but viable oauth setup
- Reply to a prompt to pick a target album
- Get your config file written for you in a normal place
- Start using
No more .env files or any of that. It behaves way more like a normal app you can just go install.
I wanted to get it into that shape because I like how it is working now: It’s a little bit of plumbing you can fit into all sorts of possible workflows to make it easier to do a small thing that can involve fiddling and typos when all you really want to do is put an image in a blog post. At the same time, while SmugMug is cool and all, I’d like to fold in support for flickr, imgur, and maybe a few others that are more common, and also leave the web UI behind.
So as I have time and feel like messing around, I’ll probably go after flickr next, since I have an account and plenty of albums to play around with.
(I was hoping to include omg.lol’s some.pics, but there’s no API to talk to.)