Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ class VersionSpec extends AnyWordSpec, Matchers:
out should include("Apache Jena")
}
}
"--version command" should {
"print version" in {
val (out, err) = Version.runTestCommand(List("--version"))
out should startWith("jelly-cli")
out should include("Jelly-JVM")
out should include("Apache Jena")
}
}