为现有 leiningen 项目生成新的空 Clojure 包和文件
我有一个现有的 leiningen 项目,我想知道 leiningen 是否允许我自动生成空的 Clojure 文件或包,而无需我手动执行。
例如,当您在 leiningen 中创建一个新项目时,它会自动生成其中包含 core.clj 的项目包,是否有任何方法可以为现有项目执行此操作,自动在文件内生成命名空间代码?
谢谢,
亚当
I have an existing leiningen project, I was wondering if there is anyway leiningen will allow me to automatically generate empty Clojure files or packages without me doing it manually.
For example when you create a new project in leiningen it will automatically generate the project package with core.clj inside it, is there any way to do this for existing projects that will automatically generate the namespace code inside the file?
Thanks,
Adam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Leiningen 似乎还没有为此提供插件,Leiningen 通常不知道除 main 和 :aot 类之外的任何命名空间,因此尚未对新的命名空间 leiningen 任务有很大的需求。
你当然可以编写自己的
Leiningen seems not to yet have a plugin for this, Leiningen is generally unaware of any namespaces other than the main and the :aot classes so there has yet to be a significant demand for a new namespace leiningen task.
you can of course write your own