How do I start the REPL in a user defined namespace?

前端 未结 7 1357
傲寒
傲寒 2020-12-06 17:13

Writing (in-ns \'dbx) to a file and loading it isn\'t changing the default namespace of the repl (using cygwin/console). The namespace is still user=><

相关标签:
7条回答
  • 2020-12-06 18:07

    Using tools.deps one way would be to define an alias and execute some forms in it:

    :aliases
          {:cursive {:main-opts ["-e" "(load \"de/sveri/getless/user\")"
                                 "-e" "(de.sveri.getless.user/reset)"]}
    

    This will load the de.sveri.getless.user namespace and execute the de.sveri.getless.user.reset function afterwards.

    0 讨论(0)
提交回复
热议问题