I want to use @main
like described here: https://ammonite.io/#ScriptArguments
@main
def all() = {
...
}
It cannot be resolved in Intellij. I couldn't find an import. I have added these dependencies:
libraryDependencies ++= Seq(
"com.lihaoyi" %% "ammonite-ops" % "1.6.9",
"com.lihaoyi" % "ammonite" % "1.6.9" cross CrossVersion.full
)
Is there a way to achieve this?