Get started quickly with Sharaf framework.
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"ba.sake::sharaf:0.9.2"
)
def scalacOptions = super.scalacOptions() ++ Seq("-Yretain-trees")
libraryDependencies ++= Seq(
"ba.sake" %% "sharaf" % "0.9.2"
),
scalacOptions ++= Seq("-Yretain-trees")
Create a file my_script.sc
with the following content:
//> using dep ba.sake::sharaf:0.9.2
and then run it with:
scala-cli my_script.sc --scala-option -Yretain-trees