I have custom tasks in my SBT (0.12.2) project. Let\'s call them a
, b
and c
. So when I\'m in the interactive mode of SBT I can just type <
I've been looking for the same thing and found this request for an easy way of aliasing and the commit that provides one: addCommandAlias
.
In my build.sbt
I now have:
addCommandAlias("go", ";container:start;~copy-resources")
As you might guess, writing go
in the console will now run the longer command sequence for me.
I've figured it out:
lazy val taskSettings = Seq(
all <<= c dependsOn (b dependsOn a)
)
another way to achieve this is to define an alias in your .sbtrc file which will be in the root of your project directory.
alias all=;a;b;c
you have an additional option of defining these .sbtrc file in your home directory in which case this alias will be available to all your projects.