在sbt命令行工具中,我如何获得特定插件的帮助?
例如,在Maven中你会写
mvn help:describe -Dplugin=docker
sbt中有类似内容吗?
答案 0 :(得分:2)
在SBT中,您可以使用help <command>
作为插件以及本机SBT命令。例如:
> help projects
projects
List the names of available builds and the projects defined in those builds.
projects add <URI>+
Adds the builds at the provided URIs to this session.
These builds may be selected using the project command.
Alternatively, tasks from these builds may be run using the explicit syntax {URI}project/task
projects remove <URI>+
Removes extra builds from this session.
Builds explicitly listed in the build definition are not affected by this command.
> help assembly
Builds a deployable fat jar.
这假设插件实际上提供了帮助信息。