Skip to content

Commit bcf632b

Browse files
committed
printing a more comprehensive version summary
1 parent 2329132 commit bcf632b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build.sbt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,14 @@ buildInfoKeys := Seq(
4747
version,
4848
"farVersion" -> V.far,
4949
"j2eoVersion" -> V.j2eo,
50-
"py2eoVersion" -> V.py2eo,
5150
"odinVersion" -> V.odin,
51+
"py2eoVersion" -> V.py2eo,
52+
"versionSummary" ->
53+
s"""|far - ${V.far}
54+
|j2eo - ${V.j2eo}
55+
|odin - ${V.odin}
56+
|py2eo - ${V.py2eo}
57+
|""".stripMargin,
5258
)
5359
buildInfoPackage := "org.polystat.cli"
5460

src/main/scala/org/polystat/cli/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ object Main extends IOApp:
5252
IO.println(a.ruleId)
5353
}
5454
case PolystatUsage.Misc(version, config) =>
55-
if (version) then IO.println(BuildInfo.version)
55+
if (version) then IO.println(BuildInfo.versionSummary)
5656
else
5757
readConfigFromFile(config.getOrElse(Path(".polystat.conf")))
5858
.flatMap(execute)

0 commit comments

Comments
 (0)