Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 603 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 603 Bytes

get-cs

A library to fetch a coursier launcher from Scala code

This library fetches a native coursier launcher, depending on your OS (Linux / macOS / Windows) and architecture (x86-64 / ARM64), and falls back to any launcher available in the PATH in unsupported OSes or architectures.

Use like

//> using lib "io.get-coursier.util:get-cs::0.1.0"
import coursier.getcs.GetCs

val csCommand = GetCs.cs() // optionally pass a coursier version to hard-code the version you're using

new ProcessBuilder(csCommand, "fetch", "org:name:ver")
  .start()