Feature request: add configuration for a startup function
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Read the existing hooks.clj example, then trace how configuration is read and how the REPL server starts. Add a configuration option that accepts a qualified symbol and runs it once at server startup; done means the function runs once when configured, and does not run when the option is absent.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Clojure
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from clojure/clojure-cli.repl
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
clojure/clojure-cli.repl#2 · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
clojure/clojure-cli.repl#1 · 1 comment · 2 reactions ·
All issues in clojure/clojure-cli.repl
Similar issues
-
.Escalation .Needs Triage Priority:P1 Type:Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
metabase/metabase#83678 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug: MCP server rejects request bodies over 100kb (express.json default) with PayloadTooLargeErrorOpenneeds triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
[Bug]: Schema-on-read: cannot retract a vector value unless it has exactly two elementsPossibly taken @markaddleman claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
replikativ/datahike#1105 ·
Maintainers usually reply within 1 day
-
`[:maybe [:or ...]]` produces non-nilable clj-kondo typePossibly taken @yenda claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100