镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Feature request: add configuration for a startup function #5

Open

Description

@seancorfield

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions