{"repo":"lispyclouds/bblgum","free":true,"listed":false,"github":"https://github.com/lispyclouds/bblgum","clone":"git clone https://github.com/lispyclouds/bblgum.git","description":"An extremely tiny and simple wrapper around charmbracelet/gum","language":"Clojure","stars":183,"topics":["babashka","charmcli","clojure","gum","tui","charmbracelet"],"license":"MIT","category":"cli-tools","readme_excerpt":"bblgum An extremely tiny and simple wrapper around the awesome gum. This is intended for babashka and JVM clojure and provides an idiomatic and data driven wrapper around the CLI tool. Requirements - Gum should be installed - Babashka or the Clojure JVM runtime, latest recommended Usage Add this to your bb.edn or deps.edn : Sample babashka usage: Interaction This follows the same section on the gum repo and all params should work verbatim. Run gum --help to discover all the params and args. This lib only has one public fn: bblgum.core/gum . Standard Usage gum tries to closely mimic the usage of the CLI tool, so it works like (gum :COMMAND) , (gum :COMMAND [ARGS]) or (gum :COMMAND [ARGS] :OPTION VALUE :OPTION2 VALUE) Examples: There are several special opts, that are handled by the library: - :in : An input stream than can be passed to gum - :as : Coerce the output. Currently supports :bool, :ignored or defaults to a seq of strings - :gum-path : Path to the gum binary. Defaults to gum All other opts are passed to the CLI. Consult gum CMD --help to see available options. To pass flags like --directory use :directory true . Always use full names of the options . Note : In the event of a name collision with a special opt and a command opt, use the low level API. Example with special options: Usage Examples input write filter confirm file pager spin table All of the rest of the options and usecases should work ™. Please raise issues/PRs for any improvements. Much appreciated! Cave","default_branch":null,"files":null,"tree":[],"storefront":"/r/lispyclouds","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lispyclouds/bblgum/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}