您如何列出Leiningen模板的选项?

时间:2022-10-15 14:31:20

From the Luminus documentation I see there's an option called h2 when creating a Luminus app:

从Luminus文档中我看到在创建Luminus应用程序时有一个名为h2的选项:

lein new luminus guestbook +h2

How can I see all the available options?

我怎样才能看到所有可用的选项?

2 个解决方案

#1


This is not a complete answer, but it seems passing a wrong attribute was all that was required, at least in case of luminus, to get the list of attributes:

这不是一个完整的答案,但似乎传递了一个错误的属性,至少在luminus的情况下,需要获取属性列表:

$ lein new luminus meh +meh
Unrecognized options: +mhe
Supported options are: +immutant, +site, +h2, +dailycred, +cljs, +sassc, +swagger, +auth, +http-kit, +cucumber, +aleph, +mongodb, +postgres, +mysql

#2


You can use following command:

您可以使用以下命令:

lein new :show <template>

Unfortunately in case the template function doesn't provide doc string and uses rest args or options map you won't get much from it and probably need to check the sources of the template.

不幸的是,如果模板函数没有提供文档字符串并使用rest args或options map,那么你将无法从中获得很多东西,并且可能需要检查模板的来源。

Check the whole help for new task with lein help new.

使用lein help new检查整个新任务的帮助。

#1


This is not a complete answer, but it seems passing a wrong attribute was all that was required, at least in case of luminus, to get the list of attributes:

这不是一个完整的答案,但似乎传递了一个错误的属性,至少在luminus的情况下,需要获取属性列表:

$ lein new luminus meh +meh
Unrecognized options: +mhe
Supported options are: +immutant, +site, +h2, +dailycred, +cljs, +sassc, +swagger, +auth, +http-kit, +cucumber, +aleph, +mongodb, +postgres, +mysql

#2


You can use following command:

您可以使用以下命令:

lein new :show <template>

Unfortunately in case the template function doesn't provide doc string and uses rest args or options map you won't get much from it and probably need to check the sources of the template.

不幸的是,如果模板函数没有提供文档字符串并使用rest args或options map,那么你将无法从中获得很多东西,并且可能需要检查模板的来源。

Check the whole help for new task with lein help new.

使用lein help new检查整个新任务的帮助。