snippets_cms/README.md
2026-02-28 19:59:45 +01:00

26 lines
590 B
Markdown

# Snippets CLI CMS
A simple command-line interface for managing my code snippets.
Written in Clojure via Babashka.
Interactive elements are powered by [Gum](https://github.com/charmbracelet/gum).
## Run dev
To run commands:
```shell
$ bb -m cli.main create
```
Or to play around and call individual functions using the REPL:
```shell
$ rlwrap bb repl
user=> (require '[cli.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)
```