call backend to create snippt
This commit is contained in:
parent
ad56963220
commit
f2e435b777
3 changed files with 29 additions and 2 deletions
21
README.md
21
README.md
|
|
@ -1,7 +1,26 @@
|
|||
## Snippets CLI CMS
|
||||
# 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-cms.main create
|
||||
```
|
||||
|
||||
Or to play around and call individual functions using the REPL:
|
||||
|
||||
```shell
|
||||
$ bb
|
||||
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)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue