Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ object Version extends JellyCommand[VersionOptions]:
override def names: List[List[String]] = List(
List("version"),
List("v"),
List("--version"),
)

override def doRun(options: VersionOptions, remainingArgs: RemainingArgs): Unit =
Expand Down
15 changes: 8 additions & 7 deletions src/test/scala/eu/neverblink/jelly/cli/command/VersionSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec

class VersionSpec extends AnyWordSpec, Matchers:
"version command" should {
"print something" in {
val (out, err) = Version.runTestCommand(List("version"))
out should startWith("jelly-cli")
out should include("Jelly-JVM")
out should include("Apache Jena")
for alias <- Seq("version", "v", "--version") do
s"$alias command" should {
"print something" in {
val (out, err) = Version.runTestCommand(List(alias))
out should startWith("jelly-cli")
out should include("Jelly-JVM")
out should include("Apache Jena")
}
}
}