我使用 sbt 0.13.1
.
列出 sbt 中的任务项目,可以使用sbt tasks -V
.
如 A "command" looks similar to a task: it's a named operation that can be executed from the sbt console和 Typically, you would resort to a command when you need to do something that's impossible in a regular task ,我怎么知道什么命令可用于 sbt 项目?
是否有类似的命令可以列出 sbt 项目中的所有命令?
说,sbt-idea插件安装在 sbt 项目中。我如何查询项目以了解 the gen-idea
command ?
鉴于 @Mark Harrah 的评论,这太令人困惑了:"gen-idea is a command, not a task."以及 sbt-idea
的文档插件在哪里说 "Use the gen-idea sbt task to create Idea project files." (注意 任务 的使用)。我很迷惑。
最佳答案
没有任何参数的“帮助”不是这样做的吗?根据我的理解,不带任何参数的“任务”将列出可用任务,而“帮助”不带参数将对命令执行类似的操作。
关于sbt - 如何知道 sbt 中可用的命令(=命名操作),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19477010/