or…
I am not the fresh prince of < /dev/tty

(we have a lot in common)
$ foo | bar | bazscala> foo andThen bar andThen baz
1) find the pieces
2) connect them
3) share
libraryDependencies <+= (sbtVersion)(
"org.scala-tools.sbt" %
"launcher-interface_2.9.1" %
_ % "provided")
$ g8 unfiltered/unfiltered.g8 --name=helloworld
Applied unfiltered/unfiltered.g8 in helloworld
+ I stole ideas from cs and herald and rolled them into ls
we need (I want) better tools
avoid complicated tools
write simplier ones
some pretty rad sh*t
cs you/rad
(coming soon)
cs -l
libraryDependencies <+= (sbtVersion)(
"org.scala-tools.sbt" %
"launcher-interface_2.9.1" %
_ % "provided")
import xsbt.{ AppMain, AppConfiguration, Exit }
trait AppMain {
def run(con: AppConfiguration): Exit
}
import xsbti.{ ApplicationConfiguration, AppMain }
class Even extends AppMain {
case class Exit(val code: Int) extends
xsbti.Exit
def main(con: ApplicationConfiguration) =
Exit(Even.run(con.arguments))
}
object Even {
def main(args: Array[String]) =
println(run(args))
def run(args: Array[String]) =
if(args.size % 2 == 0) 0 else 1
}import xsbti.{ ApplicationConfiguration, AppMain }
class Even extends AppMain {
case class Exit(val code: Int) extends
xsbti.Exit
def main(con: ApplicationConfiguration) =
Exit(Even.run(con.arguments))
}
object Even {
def main(args: Array[String]) =
println(run(args))
def run(args: Array[String]) =
if(args.size % 2 == 0) 0 else 1
}# a & b are script names
src/main/conscript/{a,b}/launchconfig
~/.conscript/user/repo/{a,b}/launchconfig
launchconfig?
kind of like .git/config, but for scala apps
$ cat launchconfig
[app]
version: 0.1.0
org: beep
name: boop
class: beep.Boop <- your main class
[scala]
version: 2.9.1
[repositories]
local
maven-central <- these are resolver aliases (sbt defined)
lessis:http://repo.lessis.me <- this is a new alias
git push