-
Notifications
You must be signed in to change notification settings - Fork 412
/
aliases.sbt
30 lines (27 loc) · 1.5 KB
/
aliases.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
addCommandAlias("fmt", "scalafmt; Test / scalafmt; sFix;")
addCommandAlias("fmtCheck", "scalafmtCheck; Test / scalafmtCheck; sFixCheck")
addCommandAlias("sFix", "scalafix OrganizeImports; Test / scalafix OrganizeImports")
addCommandAlias("sFixCheck", "scalafix --check OrganizeImports; Test / scalafix --check OrganizeImports")
addCommandAlias("generateMediaTypes", "zioHttpTools/runMain zio.http.tools.GenerateMediaTypes")
addCommandAlias("mimaChecks", "zioHttpJVM/mimaReportBinaryIssues; zioHttpHtmx/mimaReportBinaryIssues"
)
onLoadMessage := {
import scala.Console.*
def header(text: String): String = s"${RED}$text${RESET}"
def item(text: String): String = s"${GREEN}> ${CYAN}$text${RESET}"
def subItem(text: String): String = s" ${YELLOW}> ${CYAN}$text${RESET}"
s"""|
|${header(" ____ ___ ___ _ _ _____ _____ ___")}
|${header("|_ / |_ _| / _ \\ ___ | || | |_ _| |_ _| | _ \\")}
|${header(" / / | | | (_) | |___| | __ | | | | | | _/")}
|${header("/___| |___| \\___/ |_||_| |_| |_| |_|")}
|
|Useful sbt tasks:
|${item("fmt")}: Prepares source files using scalafix and scalafmt.
|${item("sFix")}: Fixes source files using scalafix.
|${item("fmtCheck")}: Checks sources by applying both scalafix and scalafmt.
|${item("sFixCheck")}: Checks sources by applying both scalafix.
|
|${subItem("Need help? Send us a message on discord: https://discord.gg/7KBzr3SRsh")}
""".stripMargin
}