-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.sbt
46 lines (44 loc) · 1.96 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import Util._
addCommandAlias("l", "projects")
addCommandAlias("ll", "projects")
addCommandAlias("ls", "projects")
addCommandAlias("cd", "project")
addCommandAlias("root", "cd bacscan")
addCommandAlias("c", "compile")
addCommandAlias("ca", "Test / compile")
addCommandAlias("t", "test")
addCommandAlias("r", "run")
addCommandAlias("rs", "reStart")
addCommandAlias("s", "reStop")
addCommandAlias("star", "thankYouStars")
addCommandAlias(
"styleCheck",
"scalafmtSbtCheck; scalafmtCheckAll; Test / compile; scalafixAll --check",
)
addCommandAlias(
"styleFix",
"Test / compile; scalafixAll; scalafmtSbt; scalafmtAll",
)
addCommandAlias(
"up2date",
"reload plugins; dependencyUpdates; reload return; dependencyUpdates",
)
onLoadMessage +=
s"""|
|╭─────────────────────────────────╮
|│ List of defined ${styled("aliases")} │
|├─────────────┬───────────────────┤
|│ ${styled("l")} | ${styled("ll")} | ${styled("ls")} │ projects │
|│ ${styled("cd")} │ project │
|│ ${styled("root")} │ cd root │
|│ ${styled("c")} │ compile │
|│ ${styled("ca")} │ compile all │
|│ ${styled("t")} │ test │
|│ ${styled("r")} │ run │
|│ ${styled("rs")} │ reStart │
|│ ${styled("s")} │ reStop │
|│ ${styled("star")} │ thankYouStars │
|│ ${styled("styleCheck")} │ fmt & fix checks │
|│ ${styled("styleFix")} │ fix then fmt │
|│ ${styled("up2date")} │ dependencyUpdates │
|╰─────────────┴───────────────────╯""".stripMargin