Skip to content

Commit

Permalink
Updated to versino 0.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrosario committed Jun 30, 2020
1 parent 9356b96 commit e2fc1d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.util.logging.LogManager
import kotlin.system.exitProcess

@Command(name = "qontract", mixinStandardHelpOptions = true, versionProvider = VersionProvider::class, subcommands = [BackwardCompatibleCommand::class, CompareCommand::class, ImportCommand::class, ManifestCommand::class, SamplesCommand::class, StubCommand::class, TestCommand::class, VersionCommand::class])
class QontractCommand : Callable<Int> {
class QontractApplication : Callable<Int> {
override fun call(): Int {
return 0
}
Expand All @@ -22,8 +22,8 @@ class QontractCommand : Callable<Int> {
fun main(args: Array<String>) {
setupLogging()
when {
args.isEmpty() -> CommandLine(QontractCommand()).usage(System.out)
else -> exitProcess(CommandLine(QontractCommand()).execute(*args))
args.isEmpty() -> CommandLine(QontractApplication()).usage(System.out)
else -> exitProcess(CommandLine(QontractApplication()).execute(*args))
}
}

Expand Down
2 changes: 1 addition & 1 deletion application/src/main/kotlin/application/VersionProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.util.*
class VersionProvider : CommandLine.IVersionProvider {
override fun getVersion(): Array<String> {
val props = Properties()
QontractCommand::class.java.classLoader.getResourceAsStream("version.properties").use {
QontractApplication::class.java.classLoader.getResourceAsStream("version.properties").use {
props.load(it)
}

Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.12.1
version=0.12.2

0 comments on commit e2fc1d8

Please sign in to comment.