update readme with link to backend and updated examples
This commit is contained in:
parent
35d90d3c8d
commit
ea4e78a737
1 changed files with 11 additions and 4 deletions
15
README.md
15
README.md
|
|
@ -1,25 +1,32 @@
|
||||||
# Snippets CLI CMS
|
# Snippets TUI CMS / MCP Server
|
||||||
|
|
||||||
A simple command-line interface for managing my code snippets.
|
A simple command-line interface for managing my code snippets. Includes a MCP server for interacting with my snippets from Claude Code.
|
||||||
|
|
||||||
Written in Clojure via Babashka.
|
Written in Clojure via Babashka.
|
||||||
|
|
||||||
Interactive elements are powered by [Gum](https://github.com/charmbracelet/gum).
|
Interactive elements are powered by [Gum](https://github.com/charmbracelet/gum).
|
||||||
|
|
||||||
|
[Clojure Backend Repo](https://git.travisshears.com/travisshears/snippets)
|
||||||
|
|
||||||
## Run dev
|
## Run dev
|
||||||
|
|
||||||
To run commands:
|
To run commands:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ bb -m cli.main create
|
$ bb -m snippets-cms.tui create
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ ./snippets_cms.bb
|
||||||
```
|
```
|
||||||
|
|
||||||
Or to play around and call individual functions using the REPL:
|
Or to play around and call individual functions using the REPL:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ rlwrap bb repl
|
$ rlwrap bb repl
|
||||||
user=> (require '[cli.create :as command])
|
user=> (require '[snippets-cms.tui-actions.create :as command])
|
||||||
user=> (def mock-snippet {:title "mock snippet from repl" :slug "mock" :tags '("mock") :markdown "# This is a mock"})
|
user=> (def mock-snippet {:title "mock snippet from repl" :slug "mock" :tags '("mock") :markdown "# This is a mock"})
|
||||||
#'user/mock-snippet
|
#'user/mock-snippet
|
||||||
user=> (command/create-snippet mock-snippet)
|
user=> (command/create-snippet mock-snippet)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue