Last active
March 18, 2018 15:01
-
-
Save Baccata/a363eb949cf15cc747ed4cc7e6fa824d to your computer and use it in GitHub Desktop.
ammonite wrapping code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ammonite | |
package $file | |
import _root_.ammonite.interp.InterpBridge.{ | |
value => interp | |
} | |
import _root_.ammonite.interp.InterpBridge.value.{ | |
exit | |
} | |
import _root_.ammonite.main.Router.{ | |
doc, | |
main | |
} | |
import _root_.ammonite.main.Scripts.{ | |
pathScoptRead | |
} | |
import _root_.ammonite.ops.{ | |
SeqFactoryFunc, | |
RegexContextMaker, | |
FilterMapArraysImplicit, | |
FilterMapGeneratorsImplicit, | |
FilterMapIteratorsImplicit, | |
PipeableImplicit, | |
Callable1Implicit, | |
FilterMapExtImplicit | |
} | |
import _root_.ammonite.repl.tools.{ | |
Desugared, | |
SourceRuntime, | |
Compat, | |
desugar, | |
HighlightJava, | |
Location, | |
source | |
} | |
import _root_.ammonite.runtime.tools.{ | |
grep, | |
tail, | |
GrepResult, | |
IvyConstructor, | |
IvyThing, | |
Grepper, | |
browse, | |
time | |
} | |
import _root_.ammonite.runtime.tools.IvyConstructor.{ | |
GroupIdExt, | |
ArtifactIdExt | |
} | |
object pipo{ | |
val someVal = 42 | |
case class SomeClass(a : Int) | |
def $main() = { scala.Iterator[String]() } | |
override def toString = "pipo" | |
val $routesOuter = this | |
object $routes | |
extends scala.Function0[scala.Seq[ammonite.main.Router.EntryPoint[$routesOuter.type]]]{ | |
def apply() = ammonite.main.Router.generateRoutes[$routesOuter.type] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val someVal = 42 | |
case class SomeClass(a : Int) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment