From d04d96cf94ec59db647dd9f2820571566e957024 Mon Sep 17 00:00:00 2001 From: Travis Shears Date: Sun, 13 Jul 2025 10:12:54 +0200 Subject: [PATCH] update readme --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b1d0476..35e257b 100644 --- a/README.md +++ b/README.md @@ -3,22 +3,26 @@ 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](https://github.com/charmbracelet/gum). +Uses a gum wrapper lib I write [com.travisshears.gum-utils](https://git.travisshears.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 ## Run dev To run commands: ```shell -$ bb -m cli-cms.main create +$ bb -m image-service-cli.main gen ``` Or to play around and call individual functions using the REPL: ```shell $ rlwrap bb repl -user=> (require '[cli-cms.create :as command]) -user=> (def mock-snippet {:title "mock snippet from repl" :slug "mock" :tags '("mock") :markdown "# This is a mock"}) -#'user/mock-snippet -user=> (command/create-snippet mock-snippet) +user=> (require '[image-service-cli.index]) +user=> (image-service-cli.index/run) +... ```