BSD Ports

devel/ammonite 3.0.0.m2 DragonFly

Provides a system shell in the high-level Scala language

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, java
Package size
52838.1 KiB, 55849.7 KiB installed

Description

A modern replacement for the Bash system shell. Provides a systems shell in the high-level Scala language, letting you seamlessly mix system operations with real code without the hassle or the frustration of trying to write complex code in Bash.

Ammonite lets you use the Scala language for scripting purposes: in a Read-Evaluate-Print-Loop (REPL), as scripts, as a library to use in existing projects, or as a standalone systems shell.

Install

Binary package:

pkg install ammonite

From DPorts:

cd /usr/dports/devel/ammonite && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

To use ammonite fully you should setup a configuration file
~/.ammonite/predef.sc. Below is an example:

interp.load.ivy("com.lihaoyi"   %% "os-lib"    % "0.9.1")
interp.load.ivy("org.typelevel" %% "cats-core" % "2.9.0")

// This @ is necessary for Ammonite to process the `interp.load.ivy`
// before continuing.
@
import cats._
import cats.data._
import cats.syntax.all._