Bläddra i källkod

chore: add dev cli task for easier cli testing

Gabriel Horner 3 dagar sedan
förälder
incheckning
fe55fdf817
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 4 0
      bb.edn
  2. 1 1
      docs/dev-practices.md

+ 4 - 0
bb.edn

@@ -67,6 +67,10 @@
            (run '-dev:publishing-dev {:parallel true})
            (run '-dev:publishing-release))}
 
+  dev:cli
+  {:doc "Run CLI with current deps/db code. Commands with JS deps are not usable e.g. mcp-server"
+   :task (apply shell {:dir "deps/db"}
+                "yarn nbb-logseq -cp src:../cli/src:../graph-parser/src:../outliner/src -m logseq.cli" *command-line-args*)}
   dev:db-query
   {:doc "Query a DB graph's datascript db"
    :requires ([babashka.fs :as fs])

+ 1 - 1
docs/dev-practices.md

@@ -336,7 +336,7 @@ These tasks are specific to database graphs. For these tasks there is a one time
 ```sh
   $ cd deps/db && yarn install && cd ../outliner && yarn install && cd ../graph-parser && yarn install && cd ../..
 ```
-
+* `dev:db-cli` - Run a CLI command from deps/db using latest deps/db code
 * `dev:db-query` - Query a DB graph
 
   ```sh