I am using sbt v0.13.5
In my project, I would like to have an sbt task that can take some input (one line), do some work on it and discard some output (again, one line). I created a helper class in my project that does this so that I can call from the terminal via sbt runMain ( sbt "runMain com.example.utils.ClassName someArgument" ).
What I would like is to save myself while typing and complete the sbt task. I would just type in sbt doThing withStuff and have a taskKey named doThing that calls runMain with the name of the class to be started and any argument.
I know how to create tasks, but I cannot figure out how to call runMain from the user task definition in my build.sbt file. Can someone point me in the right direction?
sbt
mbcrute
source share