sbt - 如何知道 sbt 中可用的命令(=命名操作)

标签 sbt

我使用 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 consoleTypically, 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/

相关文章:

scala - 在 sbt 和 Scala play 框架之间共享源代码/库

sbt - 没有在 Def.task 中找到 Append.Value[...] 的隐式以在 SBT 0.13 中生成文件?

scala - 如何将非托管 jar 添加到 g8 模板生成的 build.sbt?

scala - 如何依赖 GitHub 中的 PlayProject?

scala - 用于使用 Play/SBT 进行自定义测试配置的 javaOptions

scala - SBT、println 和 Scala 控制台应用程序的奇怪问题

scala - 如何让 sbt 将我的代码所依赖的所有 jar 文件收集到一个地方?

scala - 从 sbt 插件登录

mongodb - Mongodb-Hadoop连接器版本错误

scala - 如何更改构建定义的 Scala 版本?