Skip to content
/ sline Public

A cross-platform library for making interactive CLIs with Scala (JVM/Native) (incomplete)

License

Notifications You must be signed in to change notification settings

ysthakur/sline

Repository files navigation

sline

javadoc

This is a cross-platform library for making interactive CLIs/REPLs in Scala (JVM/Native).

Note that it doesn't do the actual line editing itself: on the JVM, it uses JLine, and in Native, it uses replxx. sline itself doesn't include all the features that JLine and replxx provide, but you can always access the underlying LineReader/Replxx instances to do JLine/replxx stuff directly.

A facade to replxx is provided in the Native version.

Demo

There's a demo in the demo folder.

To try it on the JVM:

./mill -i "demo[3.3.0]".jvm.runLocal

To try it using Native:

./mill "demo[3.3.0]".native.nativeLink
./out/demo/3.3.0/native/nativeLink.dest/out

About

A cross-platform library for making interactive CLIs with Scala (JVM/Native) (incomplete)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages