mirror of
https://github.com/GayPizzaSpecifications/foundation.git
synced 2025-08-04 05:51:32 +00:00
Gjallarhorn: Rename block-changes command to block-change-timelapse
This commit is contained in:
@ -18,7 +18,7 @@ import java.awt.image.BufferedImage
|
|||||||
import java.time.Duration
|
import java.time.Duration
|
||||||
import java.util.concurrent.ScheduledThreadPoolExecutor
|
import java.util.concurrent.ScheduledThreadPoolExecutor
|
||||||
|
|
||||||
class BlockChangeCommand : CliktCommand("Block Changes", name = "block-changes") {
|
class BlockChangeTimelapseCommand : CliktCommand("Block Change Timelapse", name = "block-change-timelapse") {
|
||||||
private val db by requireObject<Database>()
|
private val db by requireObject<Database>()
|
||||||
private val timelapseIntervalLimit by option("--timelapse-limit", help = "Timelapse Limit Intervals").int()
|
private val timelapseIntervalLimit by option("--timelapse-limit", help = "Timelapse Limit Intervals").int()
|
||||||
private val timelapseMode by option("--timelapse", help = "Timelapse Mode").enum<TimelapseMode> { it.id }.required()
|
private val timelapseMode by option("--timelapse", help = "Timelapse Mode").enum<TimelapseMode> { it.id }.required()
|
||||||
@ -29,7 +29,7 @@ class BlockChangeCommand : CliktCommand("Block Changes", name = "block-changes")
|
|||||||
private val fromCoordinate by option("--trim-from", help = "Trim From Coordinate")
|
private val fromCoordinate by option("--trim-from", help = "Trim From Coordinate")
|
||||||
private val toCoordinate by option("--trim-to", help = "Trim To Coordinate")
|
private val toCoordinate by option("--trim-to", help = "Trim To Coordinate")
|
||||||
|
|
||||||
private val logger = LoggerFactory.getLogger(BlockChangeCommand::class.java)
|
private val logger = LoggerFactory.getLogger(BlockChangeTimelapseCommand::class.java)
|
||||||
|
|
||||||
override fun run() {
|
override fun run() {
|
||||||
val threadPoolExecutor = ScheduledThreadPoolExecutor(8)
|
val threadPoolExecutor = ScheduledThreadPoolExecutor(8)
|
@ -1,12 +1,12 @@
|
|||||||
package cloud.kubelet.foundation.gjallarhorn
|
package cloud.kubelet.foundation.gjallarhorn
|
||||||
|
|
||||||
import cloud.kubelet.foundation.gjallarhorn.commands.BlockChangeCommand
|
import cloud.kubelet.foundation.gjallarhorn.commands.BlockChangeTimelapseCommand
|
||||||
import cloud.kubelet.foundation.gjallarhorn.commands.PlayerPositionExport
|
import cloud.kubelet.foundation.gjallarhorn.commands.PlayerPositionExport
|
||||||
import cloud.kubelet.foundation.gjallarhorn.commands.PlayerSessionExport
|
import cloud.kubelet.foundation.gjallarhorn.commands.PlayerSessionExport
|
||||||
import com.github.ajalt.clikt.core.subcommands
|
import com.github.ajalt.clikt.core.subcommands
|
||||||
|
|
||||||
fun main(args: Array<String>) = GjallarhornCommand().subcommands(
|
fun main(args: Array<String>) = GjallarhornCommand().subcommands(
|
||||||
BlockChangeCommand(),
|
BlockChangeTimelapseCommand(),
|
||||||
PlayerSessionExport(),
|
PlayerSessionExport(),
|
||||||
PlayerPositionExport()
|
PlayerPositionExport()
|
||||||
).main(args)
|
).main(args)
|
||||||
|
Reference in New Issue
Block a user