vic/scala-cli-g8
Giter8 launcher for scala-cli
{ "defaultBranch": "main", "description": "Giter8 launcher for scala-cli", "fullName": "vic/scala-cli-g8", "homepage": "", "language": "Scala", "name": "scala-cli-g8", "pushedAt": "2023-08-11T07:57:47Z", "stargazersCount": 1, "updatedAt": "2023-12-11T09:30:50Z", "url": "https://github.com/vic/scala-cli-g8"}This project provides a g8 template for GitHub hosted scala-cli projects.
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/setup.scalaFeatures
Section titled “Features”- Automatically setups GitHub actions workflow.
- If your project is a library, its maven artifacts are automatically published at JitPack.
- If your project is a binary, new tags are automatically packaged and published on GitHub releases.
giter8 launcher
Section titled “giter8 launcher”Using this launcher you can generate any giter8 template.
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/g8.scala -- --helpcoursier launcher
Section titled “coursier launcher”Using this launcher runs coursier allowing you to use all of its features like running jar published apps.
scala-cli run https://raw.githubusercontent.com/vic/scala-cli-g8/main/cs.scala -- --helpFor example, to launch
Motivation
Section titled “Motivation”Currently the only launchers for giter8 were sbt new and g8 itself, both of which
have to be already available on the user’s system.
However, as scala-cli becomes more popular, it’s much more probable that people will
have scala-cli available before they even get to use sbt on their projects.
This repo provides a one-liner launcher that can be run using scala-cli and let people
benefit from templates.