add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

29
pages.zh/common/clj.md Normal file
View File

@@ -0,0 +1,29 @@
# clj
> Clojure 工具,用于启动 REPL 或使用数据调用函数。
> 所有选项可以在 `deps.edn` 文件中定义。
> 更多信息:<https://clojure.org/guides/deps_and_cli>。
- 启动 REPL交互式 shell
`clj`
- 执行一个函数:
`clj -X {{namespace/function_name}}`
- 运行指定命名空间的主函数:
`clj -M -m {{namespace}} {{args}}`
- 准备一个项目,通过解析依赖关系、下载库以及创建/缓存类路径:
`clj -P`
- 启动一个带有 CIDER 中间件的 nREPL 服务器:
`clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive`
- 启动一个 ClojureScript 的 REPL 并打开一个网页浏览器:
`clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' --main cljs.main --repl`