Feature request: add configuration for a startup function
还没有人认领这个 Issue。
评估
调研方向
从现有配置键如何解析、服务器/REPL 启动流程在哪里执行入手 —— issue 中把 hooks.clj 作为当前的变通方案引用,因此请阅读该示例,了解目前用户代码在哪里被调用。找到配置加载的入口点,添加一个类似 :init-fn 的键,它接收一个带命名空间限定的符号(qualified symbol),在启动时解析并调用一次,并与其他配置键一起记录文档。完成的标准是:在用户配置中设置该键后,REPL 启动时函数恰好运行一次,且 hooks.clj 的 uptime 示例可以移出 hooks 文件。
由索引模型根据 Issue 内容生成。
描述
While there are hooks and middleware and keybindings, those are not really the "right" place to put code that a user might want to execute as part of starting up a REPL.
For example, I like to define an uptime fn in the user ns, so I can quickly see how long I've had a particular REPL running. For now, I have this code in the existing hooks.clj example file but that feels "wrong".
Could you add a configuration key that takes a qualified symbol, which is executed once at server startup? Perhaps :init-fn or something similar.
- 主要语言
- Clojure
- 星标
- 20
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
clojure/clojure-cli.repl 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
clojure/clojure-cli.repl#6 · 1 条评论 ·
查看 clojure/clojure-cli.repl 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
clojure-emacs/cider-nrepl#1053 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
bhauman/clojure-mcp-light#34 ·
-
File import: move-top-parent-pages-to-library moves classes and properties under Library (schema violation)可能已有人在做 @tiensonqin 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
Podman documentation is out of date可能已有人在做 @troyvit 于 3 天前认领。 未关闭.Needs Triage Priority:P3 Type:New Feature
难度 2/5 1-3 小时 新手友好度 68/100
metabase/metabase#83625 · 1 条评论 ·
维护者通常 1 天内回复
-
bug: MCP server rejects request bodies over 100kb (express.json default) with PayloadTooLargeError未关闭IOP MCP needs triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复