mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
Object-ified console commands (singleton!)
Former-commit-id: d04fc939a659fc4a6b952d64894bd28edf97bc38 Former-commit-id: 6c20526f3bdda2d9d08dc156b3b0fe271e89bffb
This commit is contained in:
@@ -6,14 +6,14 @@ import net.torvald.terrarum.langpack.Lang
|
||||
/**
|
||||
* Created by minjaesong on 16-04-23.
|
||||
*/
|
||||
class Version : ConsoleCommand {
|
||||
internal object Version : ConsoleCommand {
|
||||
override fun execute(args: Array<String>) {
|
||||
val echo = Echo()
|
||||
echo.execute("${Terrarum.NAME} ${Terrarum.VERSION_STRING}")
|
||||
echo.execute("Polyglot language pack version ${Lang.POLYGLOT_VERSION}")
|
||||
|
||||
Echo.execute("${Terrarum.NAME} ${Terrarum.VERSION_STRING}")
|
||||
Echo.execute("Polyglot language pack version ${Lang.POLYGLOT_VERSION}")
|
||||
}
|
||||
|
||||
override fun printUsage() {
|
||||
Echo().execute("Prints out current version of the application")
|
||||
Echo.execute("Prints out current version of the application")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user