No description
Find a file
2025-07-16 07:23:13 +02:00
src/image_service_cli gen image url after upload 2025-07-14 12:12:48 +02:00
.gitignore hook up gen image url action 2025-07-13 09:21:50 +02:00
bb.edn get image url gen working 2025-07-13 08:14:48 +02:00
config.edn.sample get image url gen working 2025-07-13 08:14:48 +02:00
image_service.bb get upload, gen, and index working plus root executable 2025-07-14 09:55:36 +02:00
LICENSE.md init with copy of cms cli project 2025-07-04 13:42:23 +02:00
README.md add install note 2025-07-16 07:23:13 +02:00
snippets_cms.bb init with copy of cms cli project 2025-07-04 13:42:23 +02:00

Image Service CLI

A simple tool to upload images to s3 and provide image service transformation urls.

Written in Clojure via Babashka. Interactive elements are powered by Gum. Uses a gum wrapper lib I write com.travisshears.gum-utils.

Commands

gen - Pick a recently uploaded image and generate a image service url with max dimension

index - Scrape s3 for images and add them to local db

upload file-path dir? - Uploads an image to s3. If on dir supplied to cli command it will prompt for one. Gives option after upload to gen url.

Run dev

To run commands:

$ bb -m image-service-cli.main gen

Or to play around and call individual functions using the REPL:

$ rlwrap bb repl
user=> (require '[image-service-cli.index])
user=> (image-service-cli.index/run)
...

Install

Clone repo and manually create alias.

Add this to .zshrc for example:

alias image-service="/Users/xxxxxxxx/image_service_cli/image_service.bb"