Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

Scala Native CLI Template

Scala Native CLI Template, with all the usual dependencies included and configured already:

  • Scala 3
  • Scala Native
  • Scala Test
  • Command Parsing
  • Command Autocompletion
  • Config Parsing (TODO)
  • Command Line Prompts (TODO)
  • Example Table Printer

Requirements

You have to have latest scala, sbt and llvm available on your system. On a mac you can get it via:

brew install scala
brew install sbt
brew install llvm

How to set up

It will install in sub directory (using the project name you have chosen).

The template will ask number of questions about desired versions of things, normally you should be fine to use defaults.

sbt new spikerlabs/scala-native-cli.g8

How to use generated project

Infrastructure code is reusable and suggested structure is scalable towards complex real use cases.

Test, Build and Run:

sbt clean test compile nativeLink
./target/scala-3.3.6/example-cli hello --help

Attribution

This is a Giter8 template, which integrates beautifully with sbt.

It is heavily inspired by Anton Sviridov's talk Modern Command Line Applications with Scala Native at Scala User Group London.

About

Scala Native CLI Template, with all the usual dependencies included and configured already.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages